January 2019
Intermediate to advanced
484 pages
11h 48m
English
First of all, we need to create a backend service that specifies health check. Then, we must add each instance group with a threshold: CPU utilization up to 80% and the maximum capacity set to 100% for both HTTP and Tomcat:
//create backend service for http (default) and named port tomcat (8080/tcp)$ gcloud compute backend-services create my-http-backend-service --health-checks my-http-health-check --protocol HTTP --global$ gcloud compute backend-services create my-tomcat-backend-service --health-checks my-tomcat-health-check --protocol HTTP --port-name tomcat --global //add http instance groups (both us-west1 and us-east1) to http backend service$ gcloud compute backend-services add-backend my-http-backend-service --instance-group ...
Read now
Unlock full access