如何重启varnish on http请求(分布式系统)

2024-09-29 06:29:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我们有一个api(Python2.7,flask-proxy to elasticsearch),varnish用作前端缓存。时不时会发布新数据,并将消息(带http端点的awsns)发送到api,说明该清除缓存了。在

在api上,我们使用varnish manager(https://github.com/justquick/python-varnish)来停止和启动varnish(没有其他方法可以清除所有缓存afaik)。这是可行的,但我们得到了“[Errno 32]Broken pipe”,因为varnish在处理请求时正在重新启动。在

关于如何解决这个问题有什么建议吗?在


Tags: to数据httpsgithubcomapihttp消息