HTTP负载均衡器自定义错误页面 [英] HTTP Load Balancer Custom Error Page

查看:60
本文介绍了HTTP负载均衡器自定义错误页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果负载均衡器由于负载不足或关闭而无法将任何子代分配给当前子代,当前是否可以设置自定义错误页面?

解决方案

没有针对此的现成解决方案.负载平衡器本身无法提供内容,它会将流量重定向到可以做到这一点的实例.

不过,您可以尝试探索从Google Cloud Storage提供错误页面的可能性:

将负载平衡为云端存储

基于内容的示例

但是,您将想出一种仅在没有其他实例响应时才重定向到云存储的方法. 我希望这会有所帮助.

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?

解决方案

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.

这篇关于HTTP负载均衡器自定义错误页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆