Skip to content

Commit

Permalink
Make sure only 110G mem is utilized for WINRM M58xlarge on Windows Gr…
Browse files Browse the repository at this point in the history
…adle Check Runner (opensearch-project#360)

Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Oct 9, 2023
1 parent 8ec8abd commit 498fbe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packer/jenkins-agent-win2019-x64-gradle-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{
"type":"powershell",
"inline": [
"C:\\Users\\Administrator\\jenkins\\winrm_max_memory.ps1 126"
"C:\\Users\\Administrator\\jenkins\\winrm_max_memory.ps1 110"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions packer/scripts/windows/winrm_max_memory.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.

echo "The max amount of the winrm memory must be 2GB smaller than max host memory, no less"
echo "Example: with 128GB on host, winrm must set to 126GB minimum size, else packer will fail on the EC2 internal preparation scripts"
echo "The max amount of the winrm memory is not the same on different instance type and might cause the server unresponsive upon startup"
echo "The only examples we have now is C54xlarge can have 30/32GB on WINRM, C524large 190/192GB, M58xlarge 110/128GB without failures"

$memorygb = [int]$args[0]
$memorygb
Expand Down

0 comments on commit 498fbe3

Please sign in to comment.