Skip to content

Commit 7435ecf

Browse files
authored
Switch to e2-medium for GCP gateways (#2886)
Switching from `e2-small` to `e2-medium` decreases provisioning time from about 5 minutes to about 2 minutes. The bottleneck is the snap, apt, and pip package installation, which takes too long on `e2-small`, likely because of the burstable CPU - `e2-small` comes with 0.5-2 vCPU, while `e2-medium` comes with 1-2 vCPU, depending on the burst.
1 parent 2cf10cc commit 7435ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def create_gateway(
499499
request.instance_resource = gcp_resources.create_instance_struct(
500500
disk_size=10,
501501
image_id=_get_gateway_image_id(),
502-
machine_type="e2-small",
502+
machine_type="e2-medium",
503503
accelerators=[],
504504
spot=False,
505505
user_data=get_gateway_user_data(configuration.ssh_key_pub),

0 commit comments

Comments
 (0)