Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

fix: (samples) fixing samples for new machine types #150

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/snippets/create_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def create_cluster(project_id, region, cluster_name):
"project_id": project_id,
"cluster_name": cluster_name,
"config": {
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-1"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-1"},
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-2"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-2"},
},
}

Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/quickstart/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def quickstart(project_id, region, cluster_name, job_file_path):
"project_id": project_id,
"cluster_name": cluster_name,
"config": {
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-1"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-1"},
"master_config": {"num_instances": 1, "machine_type_uri": "n1-standard-2"},
"worker_config": {"num_instances": 2, "machine_type_uri": "n1-standard-2"},
},
}

Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/submit_job_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
'config': {
'master_config': {
'num_instances': 1,
'machine_type_uri': 'n1-standard-1'
'machine_type_uri': 'n1-standard-2'
},
'worker_config': {
'num_instances': 2,
'machine_type_uri': 'n1-standard-1'
'machine_type_uri': 'n1-standard-2'
}
}
}
Expand Down