V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
helloworld12
V2EX  ›  问与答

docker swarm 怎样实现长连接热更新?

  •  
  •   helloworld12 · Nov 18, 2018 · 2635 views
    This topic created in 2719 days ago, the information mentioned may be changed or developed.

    嗯, 就是有外部长连接的旧节点不要删除...保留着, 等到所有外部连接断开后,再关闭容器

    然后按新的版本启动几个容器, 新的长连接请求都走新的容器

    我试了下 rolling update, 他会强制杀死容器(可能我的实验方式有问题, 我是通过 attach 容器,来假装有个外部连接链到了容器)

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3195 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    ♥ Do have faith in what you're doing.