I got it. Thank you very much! ------------------ 原始邮件 ------------------ 发件人: "Juho Mäkinen"; 发送时间: 2014年9月15日(星期一) 中午1:49 收件人: "Zebra"; 抄送: "haproxy"; 主题: Re: Can I add one new server without stop the haproxy process?
You can't. The socket admin interface allows you to only disable existing servers and then re-enable them, but you can't add a completely new server. However you can reload haproxy so that it minimises and on some platforms eliminates dropping any existing connections. Probably your init script already does this with the reload-command. For example this blog post tells about this https://medium.com/@Drew_Stokes/actual-zero-downtime-with-haproxy-18318578fde6 but I've also hear that on modern linux kernels even the iptables syn trick isn't needed, but I can't confirm. On Mon, Sep 15, 2014 at 3:02 AM, Zebra <max...@unitedstack.com> wrote: Hi,all How can I add one new server without stop the haproxy process? Looking forward to your reply! Thanks, Zebra