From 27595942a3ba1eeb7dbb966565d938ad8c9ac5ef Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 30 May 2023 19:50:50 -0400 Subject: [PATCH] Add more timeouts and idle time for Windows AMI Signed-off-by: Peter Zhu --- lib/compute/agent-node-config.ts | 4 ++-- packer/scripts/windows/scoop-install-alpinewsl.ps1 | 3 --- packer/scripts/windows/scoop-install-commons.ps1 | 3 --- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/compute/agent-node-config.ts b/lib/compute/agent-node-config.ts index 37914cfe..f1ac5bd3 100644 --- a/lib/compute/agent-node-config.ts +++ b/lib/compute/agent-node-config.ts @@ -320,10 +320,10 @@ export class AgentNodeConfig { metadataHopsLimit: '2', hostKeyVerificationStrategy: 'OFF', iamInstanceProfile: this.AgentNodeInstanceProfileArn, - idleTerminationMinutes: '60', + idleTerminationMinutes: '120', initScript: config.initScript, labelString: config.workerLabelString, - launchTimeoutStr: '1000', + launchTimeoutStr: '1200', maxTotalUses: config.maxTotalUses, minimumNumberOfInstances: 0, minimumNumberOfSpareInstances: config.minimumNumberOfSpareInstances, diff --git a/packer/scripts/windows/scoop-install-alpinewsl.ps1 b/packer/scripts/windows/scoop-install-alpinewsl.ps1 index 206c2251..dad434a8 100644 --- a/packer/scripts/windows/scoop-install-alpinewsl.ps1 +++ b/packer/scripts/windows/scoop-install-alpinewsl.ps1 @@ -12,6 +12,3 @@ scoop config no_junction true # Install alpine scoop bucket add extras scoop install alpinewsl - -# Scoop clean cache -scoop cache rm --all diff --git a/packer/scripts/windows/scoop-install-commons.ps1 b/packer/scripts/windows/scoop-install-commons.ps1 index b10fd044..de8854d2 100644 --- a/packer/scripts/windows/scoop-install-commons.ps1 +++ b/packer/scripts/windows/scoop-install-commons.ps1 @@ -186,6 +186,3 @@ cmake --version # Install zip scoop install zip -# Scoop clean cache -scoop cache rm --all -