Search code examples
google-compute-enginegoogle-cloud-endpoints

Does traffic get discarded if a google cloud endpoint is redeployed?


Let's say for argument's sake that I have a vm instance, which is configured with an endpoint config_id in it's meta-data that is set to an existing working cloud endpoint.

Can someone please explain to me what happens to the incoming requests if the cloud endpoint is redeployed? Obviously, I will get an new config_id, but if haven't yet applied this config_id to the vm instance, does the traffic just get discarded?

If this is the case, what are some viable solutions to prevent service interruption for my users.

Thanks!


Solution

  • The traffic keeps going to the old configuration until you change the endpoints-service-config-id with the new config_id:

    enter image description here

    And then ssh into the VM instance with gcloud compute ssh [INSTANCE-NAME] and run sudo /etc/init.d/nginx restart.

    In conclusion, traffic won't be discarded. It just keeps using the old config deployment. See redeploying