如何设置清漆后端连接空闲超时?

问题描述

我们拥有以AWS NLB作为后端的varnish-6.4.0服务器。如您所知,NLB具有固定的闲置超时350秒,并且无提示地关闭了连接。因此,想控制Varnish处的空闲连接。 110秒后是否可以通过清漆关闭空闲连接?

清漆-> AWS NLB-> nodejs

还可以测试这种行为吗?

谢谢, 萨尔

解决方法

您可以更新backend_idle_timeout运行时参数并将其设置为所需的值。默认值为60秒。

有关更多信息,请参见http://varnish-cache.org/docs/trunk/reference/varnishd.html#backend-idle-timeout

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...