1- I think the behavior is expected. As per the article the connection drain feature will be triggered by a deleteInstance() group action which translate in the following HTTP request
POST https://www.googleapis.com/compute/v1/projects/project/zones/zone/instanceGroupManagers/instanceGroupManager/deleteInstances
When you delete the VM from the console the HTTP request is not performed by a group action. i.e.
DELETE https://www.googleapis.com/compute/v1/projects/example-project/zones/us-central1-f/instances/example-instance
Hello Carlos,Thank you for you explanation. Topic 1 is ok.Topic 2 is still not very clear for me. I thought that removing VM from instance group marked that VM as unusable for new connections.
Hence VM should not accept incoming connections during that 5 minutes.So I don't understand a meaning of connection draining duration. How does it effect 5 minutes in your case? Is the draining period included in them? Is VM's shutdown postponed by that period? Or is it the period that VM still lives after its complete removing from the instance group?