This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export IP=... | |
| export LB_NAME="tf-lb" | |
| export FORWARDING_RULE="lb-fwd-rule" | |
| gcloud compute forwarding-rules create $FORWARDING_RULE \ | |
| --address $IP \ | |
| --global \ | |
| --target-http-proxy $LB_NAME \ | |
| --ports 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export IP4_NAME="lb-ip4" | |
| gcloud compute addresses create $IP4_NAME \ | |
| --ip-version=IPV4 \ | |
| --global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export WEB_MAP_NAME="map-all" | |
| export LB_NAME="tf-lb" | |
| gcloud compute target-http-proxies create $LB_NAME \ | |
| --url-map $WEB_MAP_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export WEB_BACKED_SERVICE_NAME="tensorflow-backend" | |
| export WEB_MAP_NAME="map-all" | |
| gcloud compute url-maps create $WEB_MAP_NAME \ | |
| --default-service $WEB_BACKED_SERVICE_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export INSTANCE_GROUP_NAME="deeplearning-instance-group" | |
| export WEB_BACKED_SERVICE_NAME="tensorflow-backend" | |
| gcloud compute backend-services add-backend $WEB_BACKED_SERVICE_NAME \ | |
| --balancing-mode UTILIZATION \ | |
| --max-utilization 0.8 \ | |
| --capacity-scaler 1 \ | |
| --instance-group $INSTANCE_GROUP_NAME \ | |
| --instance-group-region us-west1 \ | |
| --global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export HEALTH_CHECK_NAME="http-basic-check" | |
| export WEB_BACKED_SERVICE_NAME="tensorflow-backend" | |
| gcloud compute backend-services create $WEB_BACKED_SERVICE_NAME \ | |
| --protocol HTTP \ | |
| --health-checks $HEALTH_CHECK_NAME \ | |
| --global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export HEALTH_CHECK_NAME="http-basic-check" | |
| gcloud compute health-checks create http $HEALTH_CHECK_NAME \ | |
| --request-path /v1/models/default \ | |
| --port 8888 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone https://github.com/wilicc/gpu-burn.git | |
| cd gpu-burn | |
| git checkout c0b072aa09c360c17a065368294159a6cef59ddf | |
| make | |
| ./gpu_burn 600 > /dev/null & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export INSTANCE_GROUP_NAME="deeplearning-instance-group" | |
| gcloud compute instance-groups managed list-instances $INSTANCE_GROUP_NAME --region us-west1 |