I am using google cloud load balancer to Auto scale instances in GCP. I have setup a Instance group of max 6 instances. When a instance is created, it runs a startup script (To install nginx, php, mongo, psql, composer, clone project).
Google Cloud load balancer forwards request to new instances firing up before the completion of automation script.
Is there a way to forward the request only after the Startup script has completed ?