@@ -310,18 +310,26 @@ def run_gke_node_pool_create_command(
310
310
create_commands .append (command )
311
311
create_task_names .append (task )
312
312
313
- desired_pw_cpu_node_pools = ['cpu-np' ]
313
+ desired_pw_cpu_node_pools = ['cpu-np' , 'highmem-cpu-np' ]
314
314
if args .enable_pathways :
315
315
# Pathways needs CPU nodepools in addition to TPU nodepools
316
316
for node_pool_name in desired_pw_cpu_node_pools :
317
317
if node_pool_name in existing_node_pool_names :
318
318
continue
319
- command = (
320
- 'gcloud beta container node-pools create'
321
- f' { node_pool_name } --node-version={ gke_node_pool_version } --cluster={ args .cluster } --project={ args .project } --node-locations={ args .zone } --region={ zone_to_region (args .zone )} --num-nodes=1'
322
- f' --machine-type={ args .pathways_gce_machine_type } --scopes=storage-full,gke-default,{ CLOUD_PLATFORM_AUTH_SCOPE_URL } --enable-autoscaling'
323
- ' --min-nodes=1 --max-nodes=20'
324
- )
319
+ if node_pool_name == 'cpu-np' :
320
+ command = (
321
+ 'gcloud beta container node-pools create'
322
+ f' { node_pool_name } --node-version={ gke_node_pool_version } --cluster={ args .cluster } --project={ args .project } --node-locations={ args .zone } --region={ zone_to_region (args .zone )} --num-nodes=1'
323
+ f' --machine-type={ args .pathways_gce_machine_type } --scopes=storage-full,gke-default,{ CLOUD_PLATFORM_AUTH_SCOPE_URL } --enable-autoscaling'
324
+ ' --min-nodes=1 --max-nodes=20'
325
+ )
326
+ else :
327
+ command = (
328
+ 'gcloud beta container node-pools create'
329
+ f' { node_pool_name } --node-version={ gke_node_pool_version } --cluster={ args .cluster } --project={ args .project } --node-locations={ args .zone } --region={ zone_to_region (args .zone )} --num-nodes=1'
330
+ f' --machine-type={ args .pathways_highmem_gce_machine_type } --scopes=storage-full,gke-default,{ CLOUD_PLATFORM_AUTH_SCOPE_URL } --enable-autoscaling'
331
+ ' --min-nodes=1 --max-nodes=20'
332
+ )
325
333
task = f'NodepoolCreate-{ node_pool_name } '
326
334
create_commands .append (command )
327
335
create_task_names .append (task )
0 commit comments