Re: Global least loaded server

2015-06-03 Thread N P
Thanks Baptiste for your reply, but I think this is not a health check problem. Let me give you a very simplified example of the problem. Let's assume the following transactions are sent to the aforementioned configuration with W1 = 3, W2=1, W3=1,W4=1:/MYURL/MYURL /MYURL /OtherURL BK1 will

[Mandrill Support] Abuse Report from Anonymous (haproxy@formilux.org) (#110663)

2015-06-03 Thread Mandrill Support
##- Please type your reply above this line -## [Mandrill Support] Abuse Report from Anonymous (haproxy@formilux.org) (#110663) -- The Mandrill Team, Jun 3, 4:38 PM Hi Anonymous, Thank you for reporting this to the Mandrill Abuse Desk. Based on the

RE: Syslog messages get truncated at 1kb (syslog server config is ok)

2015-06-03 Thread Lukas Tribus
Hi Lukas, my mtu is set to 1500 and the message looks truncated. I am able to ping the server using that mtu root@lbha01:~# ping -s 1500 syslog -s 1472 -M do is what you would use for this test. Instead, you are sending ICMP requests at 1528 Bytes MTU without DF bit, so it will get

add header or query parameter when redirecting

2015-06-03 Thread Sylvain Faivre
Hello, I use the redirect directive to redirect users from old sites to a new site, eg: redirect prefix http://new-site.com code 301 if old-site I would like to redirect requests from many old sites to the same new site, so I need a way to add info about the old host in the new

Syslog messages get truncated at 1kb (syslog server config is ok)

2015-06-03 Thread Damiano Giorgi
Hi all, I'm looking for help on this little piece of config: global stats socket /tmp/haproxy.sock mode 0600 level admin user haproxy group haproxy daemon log syslog.7pixel.local len 8192 local0 pidfile /var/run/haproxy.pid stats socket 192.168.0.191:8080 level admin

RE: Syslog messages get truncated at 1kb (syslog server config is ok)

2015-06-03 Thread Lukas Tribus
Hi Damiano, Even if I set 8192 as length the message gets truncated after 1024 chars, we use syslog-ng and configured it to accept a ridiculously huge length (log_msg_size(262144) defined in /etc/syslog-ng.conf), I also tried using the logger utility to check if the message gets delivered

RE: Syslog messages get truncated at 1kb (syslog server config is ok)

2015-06-03 Thread Damiano Giorgi
Hi Lukas, my mtu is set to 1500 and the message looks truncated. I am able to ping the server using that mtu root@lbha01:~# ping -s 1500 syslog PING syslog.7pixel.local (10.1.0.150) 1500(1528) bytes of data. 1508 bytes from 10.1.0.150: icmp_req=1 ttl=63 time=0.446 ms 1508 bytes from 10.1.0.150:

Re: add header or query parameter when redirecting

2015-06-03 Thread Sylvain Faivre
On 06/03/2015 04:02 PM, Baptiste wrote: On Wed, Jun 3, 2015 at 11:58 AM, Sylvain Faivre sylvain.fai...@reservit.com wrote: Hello, I use the redirect directive to redirect users from old sites to a new site, eg: redirect prefix http://new-site.com code 301 if old-site I would like to

Re: add header or query parameter when redirecting

2015-06-03 Thread Baptiste
On Wed, Jun 3, 2015 at 11:58 AM, Sylvain Faivre sylvain.fai...@reservit.com wrote: Hello, I use the redirect directive to redirect users from old sites to a new site, eg: redirect prefix http://new-site.com code 301 if old-site I would like to redirect requests from many old sites to

RE: Dynamic backend selection using maps

2015-06-03 Thread Jim Gronowski
I’m not very familiar with the map function, but does hdr_end(host) work in this context? If so, in order to only match *.foo.com and not blahfoo.com, you’d need to include the dot in your map – ‘.foo.com’ instead of ‘foo.com’. From: David Reuss [mailto:shuffle...@gmail.com] Sent: Wednesday,

Re: DOC: set-log-level in Logging section preamble

2015-06-03 Thread Willy Tarreau
On Tue, May 26, 2015 at 09:16:34AM -0600, Jim Freeman wrote: As best I can tell, no mention is made of set-log-level in the Logging [Section 8] of the doc. Something akin to the following in the doc would have saved a good chunk of time/angst in addressing a logging issue I encountered :

Re: Dynamic backend selection using maps

2015-06-03 Thread Baptiste
On Wed, Jun 3, 2015 at 2:22 PM, David Reuss shuffle...@gmail.com wrote: Hello, I have this use_backend declaration: use_backend %[req.hdr(host),lower,map_dom(/etc/haproxy/worker.map,b_nodes_default)] Which seems to work wonderfully, but say i have foo.com in my map, it will match

RE: A few thoughts on Haproxy and weakdh/logjam

2015-06-03 Thread Jens Dueholm Christensen
On Thursday, May 28, 2015 2:29 PM, Lukas Tribus wrote: If your refer to long EOL'ed system, then they probably don't support DHE at all. Alas EOL'ed systems doesn't hinder its use - even if it unwise.. Thats not what I'm saying. What I'm saying is that since they are so old they

Limiting concurrent range connections

2015-06-03 Thread Sachin Shetty
Hi, I am trying to write some throttles that would limit concurrent connections for Range requests + specific urls. For example I want to allow only 2 concurrent range requests downloading a file /public-api/v1/fs-content-download I have a working rule: stick-table type string size 1M expire

Dynamic backend selection using maps

2015-06-03 Thread David Reuss
Hello, I have this use_backend declaration: use_backend %[req.hdr(host),lower,map_dom(/etc/haproxy/worker.map,b_nodes_default)] Which seems to work wonderfully, but say i have foo.com in my map, it will match foo.com.whatever.com, and ideally i'd like to only match if the domain ends with my

Re: Limiting concurrent range connections

2015-06-03 Thread Sachin Shetty
Thanks Baptiste - Will http-request set-header X-track %[url] help me track URL with query parameters as well? On 6/3/15 6:36 PM, Baptiste bed...@gmail.com wrote: On Wed, Jun 3, 2015 at 2:17 PM, Sachin Shetty sshe...@egnyte.com wrote: Hi, I am trying to write some throttles that would limit

haproxy - dynamic backend selection with map

2015-06-03 Thread David Reuss
Hello, I have this use_backend declaration: use_backend %[req.hdr(host),lower,map_dom(/etc/haproxy/worker.map,b_nodes_default)] Which seems to work wonderfully, but say i have foo.com in my map, it will match foo.com.whatever.com, and ideally i'd like to only match if the domain ends with my

Re: Limiting concurrent range connections

2015-06-03 Thread Baptiste
On Wed, Jun 3, 2015 at 2:17 PM, Sachin Shetty sshe...@egnyte.com wrote: Hi, I am trying to write some throttles that would limit concurrent connections for Range requests + specific urls. For example I want to allow only 2 concurrent range requests downloading a file

Re: Choosing servers based on IP address

2015-06-03 Thread Holger Just
Hi Andy, Franks Andy (IT Technical Architecture Manager) wrote: Quick question – can anyone think of a way to change a server’s weight based on some criteria, for example source IP address? It would be so useful when dealing with a common service that has two distinct sites, and rules in

RE: Syslog messages get truncated at 1kb (syslog server config is ok)

2015-06-03 Thread Damiano Giorgi
Hi Lukas (sorry for my quoting , I still have to manage to have this software to behave correctly Hi Lukas, my mtu is set to 1500 and the message looks truncated. I am able to ping the server using that mtu root@lbha01:~# ping -s 1500 syslog -s 1472 -M do is what you would use for this

Re: add header or query parameter when redirecting

2015-06-03 Thread Baptiste
Hi Baptiste, Unfortunately, we are not willing to upgrade to HAproxy 1.6 just yet, so we are going to use another solution for this redirect (change DNS records to resolve old hostnames to the new web server). Thank you for the info anyway, it may be useful for another time. Sylvain

Re: Limiting concurrent range connections

2015-06-03 Thread Baptiste
Yes, the url sample copies whole URL as sent by the client. Simply give it a try on a staging server and let us know the status. Baptiste On Wed, Jun 3, 2015 at 3:19 PM, Sachin Shetty sshe...@egnyte.com wrote: Thanks Baptiste - Will http-request set-header X-track %[url] help me track URL with

Re: Dynamic backend selection using maps

2015-06-03 Thread Baptiste
hi Jim, hdr_end could do the trick if you include the '.' in the matching string. Baptiste On Wed, Jun 3, 2015 at 4:55 PM, Jim Gronowski jgronow...@ditronics.com wrote: I’m not very familiar with the map function, but does hdr_end(host) work in this context? If so, in order to only match

UNSUBSCRIBE

2015-06-03 Thread Sabine Bödefeld
UNSUBSCRIBE

HAProxy responding with NOSRV SC

2015-06-03 Thread RAKESH P B
Hi All, I have a strange situation where requests to my HAProxy are returning with a 503 error. HAProxy logs shows that a NOSRV error: for POST requests from application RSET service. api-https-in~ api-https-in/NOSRV -1/-1/-1/-1/40 503 1237 - - SC-- 15/0/0/0/0 0/0 POST /PATH HTTP/1.1 During

Re:china orign chemicals

2015-06-03 Thread Sinotechem
Dear Sir/Madam, Have a good day! We, one of the leading manufacturer and exporter engaged in producing and exporting basic chemicals materials for series industrial applications. We have own three factories and collaborated with some domestic large-scaled manufacturers which mainly