清漆服务在几个小时后重新启动

问题描述 投票:0回答:2

我正在运行清漆4.1.11版本作为pod,默认malloc到内存限制的60%,并观察清漆服务消耗所有内存并重新启动一次达到100%内存。

varnishd -F -f /etc/varnish/default.vcl -a:8080 -s default = malloc,2744m -t 120 -p nuke_limit = 2000

日志

Log reacquired
Error: Unexpected reply from ping: 400 CLI communication error (hdr)
Error: Child (186905) not responding to CLI, killed it.
Log abandoned
Error: Child (186905) died signal=9
Debug: Child cleanup complete

我觉得它不尊重nuke_limit和n_lru_nuked指标是0.有人可以帮我解决这个问题。

我从4.1.8开始并升级到4.1.11仍然是同一个问题

预计它应该核对内存并且不应该重新启动服务但实际上它重新启动并且我正在丢失所有缓存。

varnish varnish-vcl varnish-4
2个回答
0
投票

请检查varnishlog或运行命令varnishadm panic.show,以便我们可以看到为什么Varnish崩溃(可能不是核弹限制)


0
投票

孩子没有反应,你是/var/lib/varnish安装为tmp?这是日志的位置,而varnish写了很多,如果它在磁盘上这样做,你可能得到那种结果

© www.soinside.com 2019 - 2024. All rights reserved.