I was reading an article about warm recoverable web server with Compute Engine and Cloud Storage.
Normal scenario:
Failover:
Documentation states that:
In an outage, you update the external HTTP(S) Load Balancing configuration and fail over to a static site in Cloud Storage.
Can the change of external HTTP(S) Load Balancing configuration occur automatically based on some health checks? For example, if load balancer detects that website deployed on compute engine stopped responding, it automatically redirects the traffic to static site in Cloud Storage. Once web server starts working again, load balancer automatically redirects requests back to it. How can I achieve this?