Re: HAProxy in Amazon EC2 in peer mode

2012-02-08 Thread Baptiste
welcome to the cloud :) On Thu, Feb 9, 2012 at 2:26 AM, Mir Islam wrote: > Just in case anyone was following in my effort to get HAProxy running in EC2. > The "peers" mode will not work in EC2 because the IP address identified in > the peer section must be an ip which is bound to the interface.

RE: Resp error on stats page

2012-02-08 Thread Dwyer, Simon
looked at the IP its coming from and its the app server that the two front end web servers (SPWFE1 and SPWFE2) use. Apparently its crawling the website to collect data. I am leaning towards its an ok error but thought i would voice it here to be sure. Following is an extended output from the

RE: Resp error on stats page

2012-02-08 Thread Dwyer, Simon
Ok so I worked out how to do logging in haproxy and how to read it (great to learn) The two logs that seem to be the resp are... Feb 9 14:26:18 localhost haproxy[25784]: 10.35.31.12:54422 [09/Feb/2012:14:24:10.920] 10-35-31-135 CTHUB/SPWFW1 0/0/0/4/127355 401 112211 - - SDNI 1/1/1/0/0 0/0 "GE

Re: HAProxy in Amazon EC2 in peer mode

2012-02-08 Thread Mir Islam
Just in case anyone was following in my effort to get HAProxy running in EC2. The "peers" mode will not work in EC2 because the IP address identified in the peer section must be an ip which is bound to the interface. I could not find a way to bypass it. Since the static IP assigned in EC2 are no

Re: HAProxy in Amazon EC2 in peer mode

2012-02-08 Thread Michele Mazzucco
You can also write a script that gather instances' data (using the EC2 APIs) in order to get the IPs. That way you can update the HAProxy configuration files when a change in your setup occurs. Cheers, Michele On Feb 8, 2012, at 5:33 PM, Mir Islam wrote: > Right, the internal IP changes since

Re: HAProxy in Amazon EC2 in peer mode

2012-02-08 Thread Mir Islam
On Feb 8, 2012, at 2:49 AM, Baptiste wrote: > Hi, > > This kind of scenario is really dependent from your configuration. > Basically, you want to configure HAProxy to load-balance SSL services > hosted by your application servers. That is correct. > Persistence based on SSLID into HAProxy, sha

Re: HAProxy in Amazon EC2 in peer mode

2012-02-08 Thread Baptiste
Hi, This kind of scenario is really dependent from your configuration. Basically, you want to configure HAProxy to load-balance SSL services hosted by your application servers. Persistence based on SSLID into HAProxy, sharing the stick-table between both haproxy. This may work, but be carefull wit

Re: Possible error in changing port between frontend and backend in 1.4.18

2012-02-08 Thread Baptiste
Hi, It seems the servers have explicitly refused the connection (TCP RST). Have you enabled the "redispatch" option? It should be used in pair with the "retry 3" you may have already set up. cheers On Wed, Feb 8, 2012 at 11:30 AM, Mateusz Ratajski wrote: > Hello. > > I have setup haproxy as fr

Re: Resp error on stats page

2012-02-08 Thread Baptiste
Hi, Can you enable logging and check out what kind of errors are generated? If you can share it with us (or at least with me), we (I) could give you some clues. Cheers On Wed, Feb 8, 2012 at 2:47 AM, Dwyer, Simon wrote: > Hi All, > > We are doing some testing of HAProxy as a frontend for sharep

Possible error in changing port between frontend and backend in 1.4.18

2012-02-08 Thread Mateusz Ratajski
Hello. I have setup haproxy as frontend for php/nginx farm for our company application. Our app contains two main modules - http frontend and webservice apllication server. http uses normal port - 80 (ssl through stunel) and webservice apps are available on port 8000 Ive decided to use one back

Possible error in changing port between frontend and backend in 1.4.18

2012-02-08 Thread Mateusz Ratajski
Hello. I have setup haproxy as frontend for php/nginx farm for our company application. Our app contains two main modules - http frontend and webservice apllication server. http uses normal port - 80 (ssl through stunel) and webservice apps are available on port 8000 Ive decided to use one back

Re:

2012-02-08 Thread Malcolm Turnbull
John, As you are using cookies it is safe to use the standard soft reload on HAProxy. So just change the configuration file as required and restart. We have a (very) simple API script on our EC2 (HAProxy based) appliance which allows auto-scaling servers in the cluster to register their IP addres