Skip to content

Commit

Permalink
Add more memory for winrm session on Windows (#199)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Sep 8, 2022
1 parent 4c7948a commit c576b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/compute/agent-node-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class AgentNodeConfig {
ebsOptimized: true,
hostKeyVerificationStrategy: 'OFF',
iamInstanceProfile: this.AgentNodeInstanceProfileArn,
idleTerminationMinutes: '120',
idleTerminationMinutes: '60',
initScript: config.initScript,
labelString: config.workerLabelString,
launchTimeoutStr: '1000',
Expand Down
2 changes: 1 addition & 1 deletion lib/compute/agent-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class AgentNodes {
maxTotalUses: 10,
minimumNumberOfSpareInstances: 2,
numExecutors: 1,
amiId: 'ami-0d09c60aa060b8e02',
amiId: 'ami-0710dc5e5094bde27',
initScript: 'echo',
remoteFs: 'C:\\Users\\Administrator\\jenkins',
};
Expand Down
2 changes: 1 addition & 1 deletion packer/scripts/windows/userdata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
cmd /c winrm quickconfig -q
cmd /c winrm quickconfig '-transport:http'
cmd /c winrm set "winrm/config" '@{MaxTimeoutms="1800000"}'
cmd /c winrm set "winrm/config/winrs" '@{MaxMemoryPerShellMB="1024"}'
cmd /c winrm set "winrm/config/winrs" '@{MaxMemoryPerShellMB="10240"}'
cmd /c winrm set "winrm/config/service" '@{AllowUnencrypted="true"}'
cmd /c winrm set "winrm/config/client" '@{AllowUnencrypted="true"}'
cmd /c winrm set "winrm/config/service/auth" '@{Basic="true"}'
Expand Down

0 comments on commit c576b9e

Please sign in to comment.