This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
这个问题很老了,但也许有人会发现答案很有用。听起来您正在寻找“备份”选项:
当服务器线路上存在“备份”时,该服务器仅在所有其他非备份服务器不可用时用于负载平衡。
参考:http://code.google.com/p/haproxy-docs/wiki /ServerOptions
配置行对于提供“Oops”页面的本地 apache 实例可能如下所示:
server localhost 127.0.0.1:80 backup
This question is pretty old but maybe someone will find the answer useful. It sounds like you're looking for the "backup" option:
When "backup" is present on a server line, the server is only used in load balancing when all other non-backup servers are unavailable.
Ref: http://code.google.com/p/haproxy-docs/wiki/ServerOptions
A config line for a local apache instance serving an "Oops" page might look something like this:
server localhost 127.0.0.1:80 backup