【发布时间】:2021-12-11 19:16:08
【问题描述】:
Ubuntu 18/清漆 4.x
我不确定我错过了什么。
文档 (http://manpages.ubuntu.com/manpages/xenial/en/man7/varnish-cli.7.html) 似乎建议:
...
backend.list [-p] [<backend_expression>]
List backends.
...
Backend Expression
A backend expression can be a backend name or a combination of backend name, IP address
and port in "name(IP address:port)" format.
...
但是,我不知道我是否遗漏了什么,因为我似乎无法在 Ubuntu 18 中传递 IP 地址或端口来列出或设置为 auto/sick:
varnish> backend.list *www*
200
Backend name Admin Probe Last updated
xxx-www-5 probe Healthy 5/5 Fri, 22 Oct 2021 08:36:34 GMT
xxx-www-5http probe Healthy (no probe) Sat, 16 Oct 2021 18:52:41 GMT
varnish> backend.list *10.105*
200
Backend name Admin Probe Last updated
varnish>
其他相关信息:
Varnish config:
...
backend xxx-www-5 {
.host = "xxxweb05";
.port = "xxx443";
...
}
backend xxx-www-5http {
.host = "xxxweb05";
.port = "xxx80";
...
}
...
$ nslookup xxxweb05
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: xxxweb05.xxx.com
Address: 10.105.xxx.xxx
【问题讨论】:
标签: varnish-vcl varnish-4