HTTP Load Balancer Custom Error Page

2019-04-25 18:44发布

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条回答
来,给爷笑一个
2楼-- · 2019-04-25 19:21

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.

查看更多
登录 后发表回答