Re: Problems about Hot Configuration of Haproxy
❦ 22 janvier 2015 11:47 +0800, hu.zhang hu.zh...@dev.bessystem.com : Thank you for your quick reply. I did a test in this way. I found the maximum connection time into 3S. Our client is particularly concerned about the http response time. Do you have another way to add/remove the servers? [...] Please see http://www.mail-archive.com/haproxy@formilux.org/msg06885.html The summary being iptables -I INPUT -p tcp --dport $PORT --syn -j DROP sleep 1 service haproxy restart iptables -D INPUT -p tcp --dport $PORT --syn -j DROP You should remove the sleep. If a SYN is received at the very beginning of the sleep, the next one will be received at the very end (or during the restart) and the next one one second later hence the 3 seconds. Without the sleep, you should get a maximum connection time of 1s (given the whole set of commands run under one second). -- If one cannot enjoy reading a book over and over again, there is no use in reading it at all. -- Oscar Wilde
Re: Problems about Hot Configuration of Haproxy
Hi,Vivek: Thank you for your quick reply. I did a test in this way. I found the maximum connection time into 3S. Our client is particularly concerned about the http response time. Do you have another way to add/remove the servers? Regards, Hu -邮件原件- 发件人: Vivek Malik [mailto:vivek.ma...@gmail.com] 发送时间: 2015年1月20日 15:27 收件人: hu.zhang 抄送: haproxy@formilux.org; w...@1wt.eu 主题: Re: Problems about Hot Configuration of Haproxy Please see http://www.mail-archive.com/haproxy@formilux.org/msg06885.html The summary being iptables -I INPUT -p tcp --dport $PORT --syn -j DROP sleep 1 service haproxy restart iptables -D INPUT -p tcp --dport $PORT --syn -j DROP Regards, Vivek On Tue, Jan 20, 2015 at 1:11 AM, hu.zhang hu.zh...@dev.bessystem.com wrote: Hi,Willy: I am a beginner of Haproxy. Recently I get a problem that hot configuration of haproxy still lead to failed request. I have read the answer from http://stackoverflow.com/questions/21595534/hot-reconfiguration-of-haproxy-still-lead-to-failed-request-any-suggestions. But the failed requests still exist when I use ApacheBench. Could you please give me some suggestion about the following two question? 1. Can I add or remove servers in backends without restarting a process? If I don’t start a haproxy process with –sf keyword, is there a way to add/remove the servers in real time? 2. If the answer of the the first question is no , Can you give me some tips about how to modify the source to achieve it? Thanks! With my best wishes, Hu.Zhang
Problems about Hot Configuration of Haproxy
Hi,Willy: I am a beginner of Haproxy. Recently I get a problem that hot configuration of haproxy still lead to failed request. I have read the answer from http://stackoverflow.com/questions/21595534/hot-reconfiguration-of-haproxy-s till-lead-to-failed-request-any-suggestions. But the failed requests still exist when I use ApacheBench. Could you please give me some suggestion about the following two question? 1. Can I add or remove servers in backends without restarting a process? If I don't start a haproxy process with -sf keyword, is there a way to add/remove the servers in real time? 2. If the answer of the the first question is no , Can you give me some tips about how to modify the source to achieve it? Thanks! With my best wishes, Hu.Zhang
Re: Problems about Hot Configuration of Haproxy
Please see http://www.mail-archive.com/haproxy@formilux.org/msg06885.html The summary being iptables -I INPUT -p tcp --dport $PORT --syn -j DROP sleep 1 service haproxy restart iptables -D INPUT -p tcp --dport $PORT --syn -j DROP Regards, Vivek On Tue, Jan 20, 2015 at 1:11 AM, hu.zhang hu.zh...@dev.bessystem.com wrote: Hi,Willy: I am a beginner of Haproxy. Recently I get a problem that hot configuration of haproxy still lead to failed request. I have read the answer from http://stackoverflow.com/questions/21595534/hot-reconfiguration-of-haproxy-still-lead-to-failed-request-any-suggestions. But the failed requests still exist when I use ApacheBench. Could you please give me some suggestion about the following two question? 1. Can I add or remove servers in backends without restarting a process? If I don’t start a haproxy process with –sf keyword, is there a way to add/remove the servers in real time? 2. If the answer of the the first question is no , Can you give me some tips about how to modify the source to achieve it? Thanks! With my best wishes, Hu.Zhang