Skip to content
Merged
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
6 changes: 2 additions & 4 deletions src/dstack/_internal/core/backends/gcp/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,8 @@ def create_placement_group(
name=placement_group.name,
region=placement_group.configuration.region,
group_placement_policy=compute_v1.ResourcePolicyGroupPlacementPolicy(
# GCP documents only collocation="COLLOCATED"
# but collocation="AS_COMPACT" actually places VMs on the same host
# and improves networking performance. Discovered with Gemini.
collocation="AS_COMPACT",
availability_domain_count=1,
collocation="COLLOCATED",
),
)
self.resource_policies_client.insert(
Expand Down
Loading