Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是情况,Jenkins 自动将战争部署到 qat glassfish 服务器
在部署期间,通常是几秒钟,我如何指示 varnish 将所有即将到来的请求搁置?
目前客户端会在短时间内看到 404
您可以在 CI 系统中设置临时 vcl。
vcl.load deploy-config /etc/varnish/deploy.vcl vcl.use deploy-config
在完成部署时,对您的普通配置执行相同的操作。对于定期维护或临时(负载)问题,您通常会采用这种方式。
我不知道您的服务器应用程序解决方案是如何工作的,但如果无法即时切换使用的应用程序,那就太奇怪了。