【发布时间】:2012-09-07 03:22:04
【问题描述】:
我有相当复杂的清漆配置。我不能真正使用导向器并手动执行路线。
//webservice1 and webservice2 has probes working there
set req.backend = webservice1;
if (req.backend.healthy)
{
#redirect there
}
set req.backend = webservice2;
if(req.backend.healthy)
{
#change parameters with regex and redirect
}
这行得通。但是看起来真的很蹩脚。
是否有任何“合法”的方式来确定后端是否健康?像这样:
if(webservice2.healthy)
{
#change parameters with regex and redirect
}
这显然是行不通的。
【问题讨论】:
标签: proxy varnish varnish-vcl