Re: Show outgoing headers when full debug enabled

2015-04-30 Thread Pavlos Parissis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 28/04/2015 12:56 ??, CJ Ess wrote: When you run HAProxy in full debugging mode there is a debug_hdrs() call that displays all of the http headers read from the frontend, I'd also like to be able to see the headers being sent to the backend.

Choosing backend based on constant

2015-04-30 Thread Veiko Kukk
Hi everybody I'd like to simplify my haproxy configuration management by using almost identical configurations for different groups of haproxy installations that use different backends based on string comparision. The only difference in haproxy configuration files of different groups would be

Re: Choosing backend based on constant

2015-04-30 Thread Baptiste
On Thu, Apr 30, 2015 at 11:49 AM, Veiko Kukk vk...@xvidservices.com wrote: Hi everybody I'd like to simplify my haproxy configuration management by using almost identical configurations for different groups of haproxy installations that use different backends based on string comparision. The

Re: Choosing backend based on constant

2015-04-30 Thread CJ Ess
Perhaps this is more what you are looking for? https://github.com/smarterclayton/haproxy-map-route-example On Thu, Apr 30, 2015 at 11:43 AM, Veiko Kukk vk...@xvidservices.com wrote: I'd like to manually add that constant string into configuration, not to get it from the traffic. It would help

[PATCH] HAProxy 1.6 Compile clean with -DDEBUG_FULL -DDEBUG_AUTH

2015-04-30 Thread CJ Ess
diff --git a/src/auth.c b/src/auth.c index 42c0808..6973136 100644 --- a/src/auth.c +++ b/src/auth.c @@ -218,11 +218,12 @@ check_user(struct userlist *ul, const char *user, const char *pass) { struct auth_users *u; + struct auth_groups_list *agl; const char *ep; #ifdef

Config option for staging/dev backends?

2015-04-30 Thread Shawn Heisey
I have a number of backend configs that handle requests to dev and staging webservers. These backend configs only have one server. If that server goes down briefly because the server process is restarted, which happens frequently precisely because they are for dev/staging, I get a console

Re: Config option for staging/dev backends?

2015-04-30 Thread Cyril Bonté
Hi Shawn, Le 30/04/2015 21:57, Shawn Heisey a écrit : One thing that I can do is increase the fall parameter for checks on the dedicated dev/staging servers, but there's a downside: haproxy won't notice that a server is down very quickly. I don't mind that haproxy *logs* the server going down

Re: Config option for staging/dev backends?

2015-04-30 Thread Shawn Heisey
On 4/30/2015 1:03 PM, Pavlos Parissis wrote: On 30/04/2015 08:31 μμ, Shawn Heisey wrote: I definitely DO want this kind of console notification if one of the production backends has no server available, but I don't want the interruption for staging or dev. If a config option to reduce the

Re: Config option for staging/dev backends?

2015-04-30 Thread Pavlos Parissis
On 30/04/2015 08:31 μμ, Shawn Heisey wrote: I have a number of backend configs that handle requests to dev and staging webservers. These backend configs only have one server. If that server goes down briefly because the server process is restarted, which happens frequently precisely because

Re: Config option for staging/dev backends?

2015-04-30 Thread Pavlos Parissis
On 30/04/2015 09:57 μμ, Shawn Heisey wrote: On 4/30/2015 1:03 PM, Pavlos Parissis wrote: On 30/04/2015 08:31 μμ, Shawn Heisey wrote: I definitely DO want this kind of console notification if one of the production backends has no server available, but I don't want the interruption for staging

Re: Choosing backend based on constant

2015-04-30 Thread Willy Tarreau
On Thu, Apr 30, 2015 at 06:43:30PM +0300, Veiko Kukk wrote: I'd like to manually add that constant string into configuration, not to get it from the traffic. It would help to reduce differences in haproxy configuration file between server groups and easier migration between groups. Once in

Re: Recommendations for a new haproxy installation

2015-04-30 Thread Willy Tarreau
Hi, On Wed, Apr 29, 2015 at 10:58:36PM -0600, Shawn Heisey wrote: On 4/29/2015 3:00 PM, Shawn Heisey wrote: How can I be sure that openssl is compiled with support for TLS acceleration in the CPU? I am compiling haproxy from source. Would you recommend that I install a separate and newer

Re: Recommendations for a new haproxy installation

2015-04-30 Thread Willy Tarreau
On Wed, Apr 29, 2015 at 03:00:58PM -0600, Shawn Heisey wrote: I have an existing load balancer installation that I have been slowly migrating from IPVS to haproxy. It's CentOS 6, so many components are out of date, such as TLS support. Once that migration is done, I would like to entirely

Re: [PATCH] HAProxy 1.6 Compile clean with -DDEBUG_FULL -DDEBUG_AUTH

2015-04-30 Thread Willy Tarreau
Hi, On Thu, Apr 30, 2015 at 01:47:30PM -0400, CJ Ess wrote: diff --git a/src/auth.c b/src/auth.c index 42c0808..6973136 100644 --- a/src/auth.c +++ b/src/auth.c @@ -218,11 +218,12 @@ check_user(struct userlist *ul, const char *user, const char *pass) { struct auth_users *u; +

Re: Show outgoing headers when full debug enabled

2015-04-30 Thread Willy Tarreau
On Thu, Apr 30, 2015 at 10:44:28AM +0200, Pavlos Parissis wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 28/04/2015 12:56 ??, CJ Ess wrote: When you run HAProxy in full debugging mode there is a debug_hdrs() call that displays all of the http headers read from the frontend,

Re: Config option for staging/dev backends?

2015-04-30 Thread Cyril Bonté
Le 30/04/2015 23:32, Shawn Heisey a écrit : On 4/30/2015 2:11 PM, Cyril Bonté wrote: Simply adjust your the log levels in your haproxy configuration for those backends, by setting the minimum syslog level to error for example, this will prevent still log the events but won't send them as

Re: Config option for staging/dev backends?

2015-04-30 Thread Shawn Heisey
On 4/30/2015 2:11 PM, Cyril Bonté wrote: Simply adjust your the log levels in your haproxy configuration for those backends, by setting the minimum syslog level to error for example, this will prevent still log the events but won't send them as emerg/alert/crit (which I assume one of them is

Re: Choosing backend based on constant

2015-04-30 Thread CJ Ess
You can use stick tables to create sticky sessions based on origin IP, cookies, and things like that, you'll need HAProxy 1.5 of better t do it. If you google for haproxy sticky sessions you'll find an number of examples. Here are a couple stand-outs:

Re: Choosing backend based on constant

2015-04-30 Thread Veiko Kukk
I'd like to manually add that constant string into configuration, not to get it from the traffic. It would help to reduce differences in haproxy configuration file between server groups and easier migration between groups. Best regards, Veiko On 30/04/15 18:06, Baptiste wrote: On Thu, Apr