Is there a way currently to set a custom error page if the load balancer does not have any children to distribute to either because of load or if they are down?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
There is no out of the box solution for that. A load balancer cannot serve content itself, it redirects traffic for instances that can do that.
You can however try to explore the possiblity to serve an error page from Google Cloud Storage :
Load Balancing to Cloud Storage
Content based example
But you'll to figure out a way to redirect to cloud storage only when no other instances are responding. I hope this helps.