Skip to content

Instantly share code, notes, and snippets.

@b0noI
Created October 19, 2018 20:44
Show Gist options
  • Save b0noI/eccfc100f694f9ff064a24738e9af99a to your computer and use it in GitHub Desktop.
Save b0noI/eccfc100f694f9ff064a24738e9af99a to your computer and use it in GitHub Desktop.
export INSTANCE_GROUP_NAME="deeplearning-instance-group"
gcloud compute instance-groups managed set-autoscaling $INSTANCE_GROUP_NAME \
--custom-metric-utilization metric=custom.googleapis.com/gpu_utilization,utilization-target-type=GAUGE,utilization-target=85 \
--max-num-replicas 4 \
--cool-down-period 360 \
--region us-west1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment