Skip to content

Commit 38c2bce

Browse files
committed
Win 2022 increase pagefile to 20GB
1 parent e81eaa7 commit 38c2bce

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

examples/multi-runner-cppal/templates/runner-configs/windows-2022.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ runner_config:
2424
scale_down_schedule_expression: cron(* * * * ? *)
2525
runner_boot_time_in_minutes: 20
2626
ami_owners: [ "047402373783" ]
27-
ami_filter: { 'name': ['github-runner-windows-2022-amd64-202409162028'] }
27+
ami_filter: { 'name': ['github-runner-windows-2022-amd64-202409272156'] }
2828
block_device_mappings:
2929
- device_name: /dev/sda1
3030
delete_on_termination: true
3131
volume_type: gp3
32-
volume_size: 90
32+
volume_size: 100
3333
encrypted: true
3434
iops: null
3535
throughput: null

images/windows-2022-cppal/manifest.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,16 @@
125125
"artifact_id": "us-west-2:ami-0c64e333fe0ccbb5c",
126126
"packer_run_uuid": "90256e1c-f243-7777-f5e2-d4856b601201",
127127
"custom_data": null
128+
},
129+
{
130+
"name": "githubrunner",
131+
"builder_type": "amazon-ebs",
132+
"build_time": 1727477535,
133+
"files": null,
134+
"artifact_id": "us-west-2:ami-08e34ea4fda08a602",
135+
"packer_run_uuid": "d927e948-9675-d84d-ca17-0c6d41a628ec",
136+
"custom_data": null
128137
}
129138
],
130-
"last_run_uuid": "90256e1c-f243-7777-f5e2-d4856b601201"
139+
"last_run_uuid": "d927e948-9675-d84d-ca17-0c6d41a628ec"
131140
}

images/windows-2022-cppal/variables.auto.pkrvars.hcl

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
region = "us-west-2"
88
instance_type = "t2.xlarge"
99
# 2024-09 size was 70. Add 10 for the jobs, and 10 for the pagefile.
10-
root_volume_size_gb = 90
10+
# then another 10 for the pagefile.
11+
root_volume_size_gb = 100
1112
ssh_keypair_name = "cppalliance-us-west-2-kp"
1213
ssh_private_key_file = "/root/.ssh/cppalliance-us-west-2-kp.pem"
1314

@@ -101,8 +102,8 @@ custom_shell_commands = [
101102
"$ComputerSystem.AutomaticManagedPagefile = $false",
102103
"$ComputerSystem.Put()",
103104
"$PageFileSetting = Get-WmiObject -ClassName Win32_PageFileSetting",
104-
"$PageFileSetting.InitialSize = 10000",
105-
"$PageFileSetting.MaximumSize = 10000",
105+
"$PageFileSetting.InitialSize = 20000",
106+
"$PageFileSetting.MaximumSize = 20000",
106107
"$PageFileSetting.Put()",
107108

108109
"echo __done__"

0 commit comments

Comments
 (0)