Hi Boris, My answers inline.
On Fri, Mar 1, 2013 at 5:07 AM, Boris Pigeot <[email protected]> wrote: > So first, my "soon running" configuration http://vpaste.net/j13Tb > I'm using haproxy in front of 3 lighttpd. > I have 3 "listen", we received some DOS, so sometimes we have to nullroute > one of the IP, so we can keep 2/3 of our trafic. > > There is only one backend for now, the "backup" is just on another port for > testing. > > So *first*, do you see anything really wrong with my config file ? Yes: option http-server-close option forceclose are mutually incompatible and from the rest of your mail, I can see "forceclose" takes the precedence. > > I just updated my kernel to 3.7.10 to see if there is, or not any > amelioration, I can't feel the difference for know (I'm the only one on this > haproxy). this is more a question of kernel stability than performance... > Before the SSL handle, I was using a lighttpd in front => localhost: haproxy > => backend lighttpd. > > *Other question* : I have a little bittorrent tracker, running on C++, since > 2 days, I'm trying to find on Google some information on "how to get the X > Forward header". > > char ip[INET_ADDRSTRLEN]; > inet_ntop(AF_INET, &(client_addr.sin_addr), ip, INET_ADDRSTRLEN); > std::string ip_str = ip; > > Should be in something arround this, I tried to find some stuff in HAProxy > sources, but I'm not very familiar with this. what is your problem here? Your HAProxy setup already inserts a X-Forwarded-For header. > > *Other Quesiton* : Any idea, maybe it could be a feature request, to add > haproxy "user agent" on check. You mean on health check? If so: option httpchk GET / HTTP/1.0\r\nUser-Agent:\ Mozilla/6.0 don't forget to backslash spaces. > *Keep Alive question* : On my ACL munin (the only page where I can have a > real use of keepalive because of the number of images), I can't find a valid > method to activate keepalive. remove the option forceclose and it may work. > That's all for now, thanks in advance if you can help me, or just if you > read this entire message. > > Boris. > Baptiste

