We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3c2c4 commit c2062cbCopy full SHA for c2062cb
1 file changed
src/dstack/_internal/core/backends/gcp/compute.py
@@ -411,8 +411,10 @@ def create_placement_group(
411
name=placement_group.name,
412
region=placement_group.configuration.region,
413
group_placement_policy=compute_v1.ResourcePolicyGroupPlacementPolicy(
414
- availability_domain_count=1,
415
- collocation="COLLOCATED",
+ # GCP documents only collocation="COLLOCATED"
+ # but collocation="AS_COMPACT" actually places VMs on the same host
416
+ # and improves networking performance. Discovered with Gemini.
417
+ collocation="AS_COMPACT",
418
),
419
)
420
self.resource_policies_client.insert(
0 commit comments