Skip to content

Commit 1321113

Browse files
authored
Revert "Use AS_COMPACT collocation for gcp placement groups (#2587)" (#2592)
This reverts commit fd0c144. Fixes: #2591
1 parent f57e7cc commit 1321113

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/dstack/_internal/core/backends/gcp/compute.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,8 @@ def create_placement_group(
411411
name=placement_group.name,
412412
region=placement_group.configuration.region,
413413
group_placement_policy=compute_v1.ResourcePolicyGroupPlacementPolicy(
414-
# GCP documents only collocation="COLLOCATED"
415-
# but collocation="AS_COMPACT" actually places VMs on the same host
416-
# and improves networking performance. Discovered with Gemini.
417-
collocation="AS_COMPACT",
414+
availability_domain_count=1,
415+
collocation="COLLOCATED",
418416
),
419417
)
420418
self.resource_policies_client.insert(

0 commit comments

Comments
 (0)