如果代理authentication失败,squid能否自动从循环列表中删除cache_peer?

我有一个鱿鱼实例configuration为以循环方式转发到一组上游代理服务器。 这是相关的configuration:

cache_peer xxx1 parent 3128 0 round-robin no-query proxy-only login=user:pass cache_peer xxx2 parent 3128 0 round-robin no-query proxy-only login=user:pass cache_peer xxx3 parent 3128 0 round-robin no-query proxy-only login=user:pass 

我遇到的问题是偶尔有一个(或多个)这些上游代理改变它的身份validation而不告诉我,并且我的squid代理的用户开始在他们的浏览器中获得“代理身份validation”popup窗口。

有没有办法让鱿鱼认为'407代理身份validation所需的'响应实际上意味着服务器已经死了,应该从循环名单中删除?

谢谢。

你可能想要为cache_peer设置一个monitorurl =,更多的信息在这里:

http://www.visolve.com/squid/squid26/neighboursel.php#cache_peer

基本上monitorurl是testinglogin的脚本。 你可以让monitorurl指向一个本地的testing脚本,或者让它在cache_peers上运行,并testing其他的东西(我们也有我们对可用资源的testing)。