How to allow larger cookie for particular backend site.

2018-01-23 Thread Rajesh Kolli
Hi Team,

 

I am using "tune.maxrewrite 16384",  "tune.bufsize 32768" these values to
allow larger cookie value globally, but I want to allow larger cookie value
for specific site means for particular backend site not to all backend
sites. I have searching for in haproxy docs and some blogs but I didn't get
solution for it.

 

So, could you guys help on it.

 

Thanks & Regards

Rajesh Kolli

 



RE: Need to understand logs

2017-09-11 Thread Rajesh Kolli
Hi PiBa,

Thank you for clarifying my doubt, this is what I am expecting. My doubt is 
cleared.

Thanks to all of you for spending time for me.

Thanks & Regards
Rajesh Kolli

-Original Message-
From: PiBa-NL [mailto:piba.nl@gmail.com] 
Sent: Monday, September 11, 2017 5:06 PM
To: Rajesh Kolli; 'Aleksandar Lazic'
Cc: haproxy@formilux.org
Subject: Re: Need to understand logs

Hi Rajesh, Aleksander,
Op 11-9-2017 om 10:32 schreef Rajesh Kolli:
> Hi Aleksandar,
>
> Thank you for clarifying about "Layer 4" checks.
>
> I am interested in knowing the values of these %d/%d, %s in line 319. 
> Why it is taking only 1/2, 1/3... values? What they are representing?
Have you seen rise & fall in the documentation?
http://cbonte.github.io/haproxy-dconv/1.8/snapshot/configuration.html#rise
http://cbonte.github.io/haproxy-dconv/1.8/snapshot/configuration.html#5.2-fall
Basically it takes by default 3 consecutive failed checks to mark a server 
down, and 2 passed checks to get it back up.
So 1/3 is 1 failed check but server status is still 'up'.
Then 2/3 failed check, but still marked up.
At 3/3 the server would be marked down, and removed from the backend pool.
Then after a while when the webserver is working again the following will 
happen.
After the first successful 1/2 check the server is still marked 'down'.
And on the second 2/2 successful check it will be marked 'up' and is added back 
into the backend server pool to take requests.
>   319 "chunk_appendf(, ", status: %d/%d %s",
>   320  (check->health >= check->rise) ?
> check->health - check->rise + 1 : check->health,
>   321  (check->health >= check->rise) ?
> check->fall : check->rise,
>   322  (check->health >= check->rise) ?
> (s->uweight ? "UP" : "DRAIN") : "DOWN");
>   323
>
> Thanks & Regards
> Rajesh Kolli
>
> -Original Message-
> From: Aleksandar Lazic [mailto:al-hapr...@none.at]
> Sent: Sunday, September 10, 2017 9:37 PM
> To: Rajesh Kolli; haproxy@formilux.org
> Subject: Re: Need to understand logs
>
> Hi Rajesh.
>
> Rajesh Kolli wrote on 08.09.2017:
>
>> Hi Aleksandar,
>> Thank you for your response. Yes, I am using "Log-health-checks" in 
>> my configuration and here is my HAProxy version information.
> Thanks.
>
> sorry to say that but for know you can only take a look into the 
> source for documenation.
>
> http://git.haproxy.org/?p=haproxy-1.7.git=search=HEAD=grep=PR
> _O2_LO
> GHCHKS
>
> for example.
>
> http://git.haproxy.org/?p=haproxy-1.7.git;a=blob;f=src/checks.c;hb=640
> d526f8
> cdad00f7f5043b51f6a34f3f6ebb49f#l307
>
> We are open for patches also for documentation to add this part to the 
> docs
> ;-)
>
> To answer your question below I think layer 4 checks are 'only' tcp 
> checks which sometimes are answered by some os when a service is 
> listen on the specific port.
>
> This does not means that the App works properly.
>
> I'm open for any correction when my assumption is wrong.
>
> Regards
> Aleks
>
>> [root@DS-11-82-R7-CLST-Node1 ~]# haproxy -vv HA-Proxy version 1.7.8
>> 2017/07/07 Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org> 
>> Build options :
>>TARGET  = linux2628
>>CPU = generic
>>CC  = gcc
>>CFLAGS  = -O2 -g -fno-strict-aliasing 
>> -Wdeclaration-after-statement
> -fwrapv
>>OPTIONS =
>> Default settings :
>>maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents 
>> =
>> 200
>
>> Thanks & Regards
>> Rajesh Kolli
>> -Original Message-
>> From: Aleksandar Lazic [mailto:al-hapr...@none.at]
>> Sent: Thursday, September 07, 2017 10:08 PM
>> To: Rajesh Kolli; haproxy@formilux.org
>> Subject: Re: Need to understand logs
>> Hi Rajesh.
>> Rajesh Kolli wrote on 07.09.2017:
>>> Hello,
>>>
>>> I am using HAProxy community version from a month, i need to 
>>> understand logs of HAProxy for the i need your help.
>>>
>>> Here is a sample of my logs:
>>> Sep  6 17:03:31 localhost haproxy[19389]: Health check for server
>>> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 
>>> check passed, check duration: 0ms, status: 1/2 DOWN.
>>> Sep  6 17:03:33 localhost haproxy[19389]: Health check for server
>>> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 
>>> check passed, check duration: 0ms, status: 3/3 UP.
>>> Sep  6 17:03:33 localhost haproxy[19389]: Server
>>> Ne

RE: Need to understand logs

2017-09-11 Thread Rajesh Kolli
Hi Aleksandar,

Thank you for clarifying about "Layer 4" checks. 

I am interested in knowing the values of these %d/%d, %s in line 319. Why it
is taking only 1/2, 1/3... values? What they are representing?

 319"chunk_appendf(, ", status: %d/%d %s",
 320  (check->health >= check->rise) ?
check->health - check->rise + 1 : check->health,
 321  (check->health >= check->rise) ?
check->fall : check->rise,
 322  (check->health >= check->rise) ?
(s->uweight ? "UP" : "DRAIN") : "DOWN");
 323

Thanks & Regards
Rajesh Kolli

-Original Message-
From: Aleksandar Lazic [mailto:al-hapr...@none.at] 
Sent: Sunday, September 10, 2017 9:37 PM
To: Rajesh Kolli; haproxy@formilux.org
Subject: Re: Need to understand logs

Hi Rajesh.

Rajesh Kolli wrote on 08.09.2017:

> Hi Aleksandar,

> Thank you for your response. Yes, I am using "Log-health-checks" in my 
> configuration and here is my HAProxy version information.

Thanks.

sorry to say that but for know you can only take a look into the source for
documenation.

http://git.haproxy.org/?p=haproxy-1.7.git=search=HEAD=grep=PR_O2_LO
GHCHKS

for example.

http://git.haproxy.org/?p=haproxy-1.7.git;a=blob;f=src/checks.c;hb=640d526f8
cdad00f7f5043b51f6a34f3f6ebb49f#l307

We are open for patches also for documentation to add this part to the docs
;-)

To answer your question below I think layer 4 checks are 'only' tcp checks
which sometimes are answered by some os when a service is listen on the
specific port.

This does not means that the App works properly.

I'm open for any correction when my assumption is wrong.

Regards
Aleks

> [root@DS-11-82-R7-CLST-Node1 ~]# haproxy -vv HA-Proxy version 1.7.8 
> 2017/07/07 Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org>

> Build options :
>   TARGET  = linux2628
>   CPU = generic
>   CC  = gcc
>   CFLAGS  = -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement
-fwrapv
>   OPTIONS =

> Default settings :
>   maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 
> 200


> Thanks & Regards
> Rajesh Kolli

> -Original Message-
> From: Aleksandar Lazic [mailto:al-hapr...@none.at]
> Sent: Thursday, September 07, 2017 10:08 PM
> To: Rajesh Kolli; haproxy@formilux.org
> Subject: Re: Need to understand logs

> Hi Rajesh.

> Rajesh Kolli wrote on 07.09.2017:

>> Hello,
>>
>> I am using HAProxy community version from a month, i need to 
>> understand logs of HAProxy for the i need your help.
>>
>> Here is a sample of my logs:

>> Sep  6 17:03:31 localhost haproxy[19389]: Health check for server
>> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 
>> check passed, check duration: 0ms, status: 1/2 DOWN.

>> Sep  6 17:03:33 localhost haproxy[19389]: Health check for server
>> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 
>> check passed, check duration: 0ms, status: 3/3 UP.

>> Sep  6 17:03:33 localhost haproxy[19389]: Server
>> Netrovert-sites/DS-11-81-R7-CLST-Node2 is UP. 2 active and 0 backup 
>> servers online. 0 sessions requeued, 0 total in queue.
>>
>> Here my doubts are, in first line health check is 1/2 DOWN and 2nd 
>> line it is 3/3 UP, in both cases Layer4 check passed. How to 
>> understand it? what exactly it is checking? what are these 1/2 & 1/3's?
>>
>> Finally, is there any document to understand its logging?

> There is a logging part in the doc but I haven't seen such entries in the
document.

> http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8

> Maybe you have activated
> http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-optio
> n%20log-health-checks
> in your config.


> It would be nice to know which haproxy version you use.

> haproxy -vv

> --
> Best Regards
> Aleks
> https://www.me2digital.com/




--
Best Regards
Aleks




RE: Need to understand logs

2017-09-08 Thread Rajesh Kolli
Hi Aleksandar,

Thank you for your response. Yes, I am using "Log-health-checks" in my 
configuration and here is my HAProxy version information.

[root@DS-11-82-R7-CLST-Node1 ~]# haproxy -vv
HA-Proxy version 1.7.8 2017/07/07
Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org>

Build options :
  TARGET  = linux2628
  CPU = generic
  CC  = gcc
  CFLAGS  = -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv
  OPTIONS =

Default settings :
  maxconn = 2000, bufsize = 16384, maxrewrite = 1024, maxpollevents = 200


Thanks & Regards
Rajesh Kolli

-Original Message-
From: Aleksandar Lazic [mailto:al-hapr...@none.at] 
Sent: Thursday, September 07, 2017 10:08 PM
To: Rajesh Kolli; haproxy@formilux.org
Subject: Re: Need to understand logs

Hi Rajesh.

Rajesh Kolli wrote on 07.09.2017:

> Hello,
>
> I am using HAProxy community version from a month, i need to 
> understand logs of HAProxy for the i need your help.
>
> Here is a sample of my logs:

> Sep  6 17:03:31 localhost haproxy[19389]: Health check for server
> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 check 
> passed, check duration: 0ms, status: 1/2 DOWN.

> Sep  6 17:03:33 localhost haproxy[19389]: Health check for server
> Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 check 
> passed, check duration: 0ms, status: 3/3 UP.

> Sep  6 17:03:33 localhost haproxy[19389]: Server
> Netrovert-sites/DS-11-81-R7-CLST-Node2 is UP. 2 active and 0 backup 
> servers online. 0 sessions requeued, 0 total in queue.
>
> Here my doubts are, in first line health check is 1/2 DOWN and 2nd 
> line it is 3/3 UP, in both cases Layer4 check passed. How to 
> understand it? what exactly it is checking? what are these 1/2 & 1/3's?
>
> Finally, is there any document to understand its logging?

There is a logging part in the doc but I haven't seen such entries in the 
document.

http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8

Maybe you have activated
http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-option%20log-health-checks
in your config.


It would be nice to know which haproxy version you use.

haproxy -vv

--
Best Regards
Aleks
https://www.me2digital.com/




Need to understand logs

2017-09-07 Thread Rajesh Kolli
Hello,

I am using HAProxy community version from a month, i need to understand
logs of HAProxy for the i need your help.

Here is a sample of my logs:
Sep  6 17:03:31 localhost haproxy[19389]: Health check for server
Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 check
passed, check duration: 0ms, status: 1/2 DOWN.
Sep  6 17:03:33 localhost haproxy[19389]: Health check for server
Netrovert-sites/DS-11-81-R7-CLST-Node2 succeeded, reason: Layer4 check
passed, check duration: 0ms, status: 3/3 UP.
Sep  6 17:03:33 localhost haproxy[19389]: Server
Netrovert-sites/DS-11-81-R7-CLST-Node2 is UP. 2 active and 0 backup servers
online. 0 sessions requeued, 0 total in queue.

Here my doubts are, in first line health check is 1/2 DOWN and 2nd line it
is 3/3 UP, in both cases Layer4 check passed. How to understand it? what
exactly it is checking? what are these 1/2 & 1/3's?

Finally, is there any document to understand its logging?



-- 




*Thanks & RegardsRajesh Kolli*


Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Rajesh Kolli
Hi All,

Thanks for your support.

Earlier I have upgraded from 1.4 to 1.7 using source then haproxy working
but alerting is not working.

I have checked haproxy version using cli command and it has given 1.7.x but
if I query rpm then it's giving 1.4.x then I realized that upgrade has some
issue.

At least, I have download latest rpm RedHat and installed it then every
thing is working and alerts too working.

On 24 Aug 2017 7:57 pm, "Frederic Lecaille" <flecai...@haproxy.com> wrote:

> On 08/24/2017 03:35 PM, Rajesh Kolli wrote:
>
>> Hi Daniel,
>>
>> I have changed my config file according to you, even though i am getting
>> the same error.
>> -
>> haproxy.service - HAProxy Load Balancer
>>Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled)
>>Active: inactive (dead) since Thu 2017-08-24 19:04:14 IST; 6s ago
>>   Process: 7641 ExecStart=/usr/sbin/haproxy-systemd-wrapper -f
>> /etc/haproxy/haproxy.cfg -p /run/haproxy.pid (code=exited,
>> status=0/SUCCESS)
>>  Main PID: 7641 (code=exited, status=0/SUCCESS)
>>
>> Aug 24 19:04:14 DS-11-82-R7-CLST-Node1 systemd[1]: Starting HAProxy Load
>> Balancer...
>> Aug 24 19:04:14 DS-11-82-R7-CLST-Node1 systemd[1]: Started HAProxy Load
>> Balancer.
>> Aug 24 19:04:14 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[7641]:
>> [ALERT] 235/190414 (7642) : parsing [/etc/haproxy/haproxy.cfg:9]:
>> unknown keyword 'mailers' out of section.
>> Aug 24 19:04:14 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[7641]:
>> [ALERT] 235/190414 (7642) : parsing [/etc/haproxy/haproxy.cfg:10]:
>> unknown keyword 'mailer' out of section.
>> Aug 24 19:04:14 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[7641]:
>> [ALERT] 235/190414 (7642) : parsing [/etc/haproxy/haproxy.cfg:121] :
>> unknown keyword 'email-alert' in 'backend' section
>>
>
> Well I would at least say that your haproxy does not support "email-alert"
> keyword ;)
>
> If I configure a 1.7 haproxy *without* any "mailers" section *but* with a
> "email-alert mailers mta" setting in "backend" sections the parser does not
> say it does not known "email-alert" keyword. It says: unable to find
> "mailers" mta.
>
> So even your haproxy could support "mailers" keyword, as it does not
> support "email-alert", this would be for nothing ;)
>
> You should try the same thing: remove/comment your "mailers" section, and
> see if you still have "unknown keyword 'email-alert' in 'backend' section".
>
> AFAIK, "email-alert" may be followed by a "mailers" keyword  ;)
>
> Or perhaps I have missed something.
>


Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Rajesh Kolli
Hi,

I am using latest version.

[root@DS-11-82-R7-CLST-Node1 ~]# haproxy -v

HA-Proxy version 1.7.8 2017/07/07
Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org>



On Thu, Aug 24, 2017 at 6:59 PM, Jérôme Magnin <jmag...@haproxy.com> wrote:

> On Thu, Aug 24, 2017 at 06:50:51PM +0530, Rajesh Kolli wrote:
> > Hi Daniel,
> >
> > Thanks for your quick response...
> >
> > i am getting this error if i use mailers section in my configuration.
> > 
> -
> > [root@DS-11-82-R7-CLST-Node1 ~]# systemctl status haproxy.service -l
> > haproxy.service - HAProxy Load Balancer
> >Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled)
> >Active: inactive (dead) since Thu 2017-08-24 18:43:23 IST; 4s ago
> >   Process: 6511 ExecStart=/usr/sbin/haproxy-systemd-wrapper -f
> > /etc/haproxy/haproxy.cfg -p /run/haproxy.pid (code=exited,
> status=0/SUCCESS)
> >  Main PID: 6511 (code=exited, status=0/SUCCESS)
> >
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 systemd[1]: Starting HAProxy Load
> > Balancer...
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 systemd[1]: Started HAProxy Load
> > Balancer.
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:81] :
> unknown
> > keyword 'mailers' in 'listen' section
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:82] :
> unknown
> > keyword 'mailer' in 'listen' section
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:117] :
> > unknown keyword 'email-alert' in 'backend' section
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:119] :
> > unknown keyword 'email-alert' in 'backend' section
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:120] :
> > unknown keyword 'email-alert' in 'backend' section
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : Error(s) found in configuration file :
> > /etc/haproxy/haproxy.cfg
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > [ALERT] 235/184323 (6512) : Fatal errors found in configuration.
> > Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> > haproxy-systemd-wrapper: exit, haproxy RC=256
> >
>
> Hello Rajesh,
>
> you are most likely running a version in which mailers is not implemented
> (<1.6).
>
> Jérôme
>



-- 




*Thanks & RegardsRajesh Kolli*


Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Rajesh Kolli
t;
> backend app
> balance roundrobin
> #option httpchk #HEAD / HTTP/1.1\r\nHost:\ localhost#Check the
> server application is up and healty - 200 status code
> server  11-80-R7-CLST-Node110.10.11.80:80 check
>     server  DS-11-81-R7-CLST-Node210.10.11.81:80 check
>
> email-alert mailers mta
> #email-alert level alert
> email-alert from redm...@netrovert.net
> email-alert to rajesh.ko...@netrovert.net
>
> Regards,
> Daniel
>
> Am 24.08.17 um 15:20 schrieb Rajesh Kolli:
>
> Hi Daniel,
>
> Thanks for your quick response...
>
> i am getting this error if i use mailers section in my configuration.
> 
> -
> [root@DS-11-82-R7-CLST-Node1 ~]# systemctl status haproxy.service -l
> haproxy.service - HAProxy Load Balancer
>Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled)
>Active: inactive (dead) since Thu 2017-08-24 18:43:23 IST; 4s ago
>   Process: 6511 ExecStart=/usr/sbin/haproxy-systemd-wrapper -f
> /etc/haproxy/haproxy.cfg -p /run/haproxy.pid (code=exited, status=0/SUCCESS)
>  Main PID: 6511 (code=exited, status=0/SUCCESS)
>
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 systemd[1]: Starting HAProxy Load
> Balancer...
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 systemd[1]: Started HAProxy Load
> Balancer.
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:81] : unknown
> keyword 'mailers' in 'listen' section
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:82] : unknown
> keyword 'mailer' in 'listen' section
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:117] :
> unknown keyword 'email-alert' in 'backend' section
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:119] :
> unknown keyword 'email-alert' in 'backend' section
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : parsing [/etc/haproxy/haproxy.cfg:120] :
> unknown keyword 'email-alert' in 'backend' section
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : Error(s) found in configuration file :
> /etc/haproxy/haproxy.cfg
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> [ALERT] 235/184323 (6512) : Fatal errors found in configuration.
> Aug 24 18:43:23 DS-11-82-R7-CLST-Node1 haproxy-systemd-wrapper[6511]:
> haproxy-systemd-wrapper: exit, haproxy RC=256
>
> 
> 
> Here is my config file
>
> [root@DS-11-82-R7-CLST-Node1 ~]# cat /etc/haproxy/haproxy.cfg
> #-
> # Global settings
> #-
> global
> log 127.0.0.1 local2
>
> chroot  /var/lib/haproxy
> pidfile /var/run/haproxy.pid
> maxconn 4000
> userhaproxy
> group   haproxy
> daemon
>
> stats socket /var/lib/haproxy/stats
>
> #-
> # common defaults that all the 'listen' and 'backend' sections will
> # use if not designated in their block
> #-
> defaults
> modehttp
> log global
> option  httplog
> option  dontlognull
> #option log-health-checks
> option http-server-close
> option forwardfor   except 127.0.0.0/8
> option  redispatch
> retries 3
> timeout http-request10s
> timeout queue   1m
> timeout connect 10s
> timeout client  1m
> timeout server  1m
> timeout http-keep-alive 10s
> timeout check   10s
> maxconn 3000
>
> #-
> #HAProxy Monitoring Config
> #-
> listen haproxy3-monitoring
> bind :8080#Haproxy Monitoring run on port 8080
> mode http
> option forwardfor
> option httpclose
> stats enable
> stats show-legends
> stat

Re: Will HAProxy community supports mailers section?

2017-08-24 Thread Rajesh Kolli
-11-81-R7-CLST-Node210.10.11.81:80 check


I am using postfix on my machine to send emails and i have configured
postfix with gmail to send emails.

Could you help on it or suggest something.

On Thu, Aug 24, 2017 at 6:36 PM, Daniel Heitepriem <
daniel.heitepr...@pribas.com> wrote:

> Hi Rajesh,
>
> the community version supports mailers. Here is a working section from
> my configuration:
>
> mailers mymailserver
> mailer smtp1 10.1.0.251:25
>
> frontend frontend_CHANGEME
>
> bind *:443 ssl crt /opt/etc/haproxy/haproxy-t.pem force-tlsv12 no-sslv3
>
> #
> # backend configuration
> #
>
> backend booking-backend
> compression algo gzip
> compression type text/html text/plain text/css
> server server1-t server1-t:8443 check ssl verify none maxconn 4000
>
> backend vakanz-backend
> compression algo gzip
> compression type text/html text/plain text/css application/xml
> server server2-t server2-t:8080 check verify none force-tlsv12 backup
> server server3-t server3-t:8443 check ssl verify none no-sslv3
>
> email-alert mailers mymailserver
> email-alert from haprox...@mydomain.com
> email-alert to myn...@mydomain.com
>
> I hope it helps
>
> Regards,
> Daniel
>
> Am 24.08.17 um 14:35 schrieb Rajesh Kolli:
> > Hello,
> >
> > I am new to HAProxy, present i am using community version of haproxy,
> > and i am trying to configure alerting in my configuration, after i
> > configure "mailers" section and after restart of service it is
> > throwing "unknown keyword mailers" in frontend.
> >
> > Now, my doubt is... will HAProxy community supports mailers/alerting?
> >
> > Thanks in advance if you suggest something on this.
> >
> > Thanks and Regards
> >
> > Rajesh Kolli
> >
> >
>



-- 




*Thanks & RegardsRajesh Kolli*


Will HAProxy community supports mailers section?

2017-08-24 Thread Rajesh Kolli

Hello,

I am new to HAProxy, present i am using community version of haproxy, 
and i am trying to configure alerting in my configuration, after i 
configure "mailers" section and after restart of service it is throwing 
"unknown keyword mailers" in frontend.


Now, my doubt is... will HAProxy community supports mailers/alerting?

Thanks in advance if you suggest something on this.

Thanks and Regards

Rajesh Kolli