Re: stick-table and URL

2013-05-16 Thread Rui Luís
Sorry for the problem.. but it was my problem.. its working now as expected.. again sorry for the troble.. -- Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime. On Wed, May 15, 2013 at 2:58 PM, Rui Luís rui.l...@gmail.com wrote: i was able

Re: stick-table and URL

2013-05-15 Thread Rui Luís
i was able to generate in the server the cookie (SERVERID) and i can pass it i also altered the line cookie SERVERID insert indirect nocache to cookie SERVERID and also try without the line however it is not working curl header: Set-Cookie: SERVERID=memtom1 is it possible to see the stick table

Re: stick-table and URL

2013-05-14 Thread Emeric BRUN
original message- De: Baptiste bed...@gmail.com A: Emeric BRUN eb...@exceliance.fr Copie à: haproxy@formilux.org Date: Tue, 14 May 2013 07:55:22 +0200 - Hi Emeric, I'm sure it works. We use the same trick

Re: stick-table and URL

2013-05-14 Thread Emeric BRUN
original message- De: Emeric BRUN eb...@exceliance.fr A: Baptiste bed...@gmail.com Copie à: haproxy@formilux.org Date: Tue, 14 May 2013 08:00:42 +0200 - original message-

Re: stick-table and URL

2013-05-14 Thread Baptiste
On Tue, May 14, 2013 at 8:00 AM, Emeric BRUN eb...@exceliance.fr wrote: But i'm sur cookie persistance match is prior on stick table rules, so if a cookie is cookie is match the stick-match rules are not eval and the expiration timestamp of the entry is not refreshed. I also agree on this

stick-table and URL

2013-05-13 Thread Rui Luís
Good day. For a few days i am trying to use stick-table with cookies and url parameters because flash does not support cookies i have the following configuration: backend webservers_backend cookie SERVERID insert indirect nocache stick-table type string len 40 size 20k stick

Re: stick-table and URL

2013-05-13 Thread Baptiste
Hi Rui, This is normal: HAProxy can't store in a stick table headers it has itself setup. So the line stick store-response set-cookie(SERVERID) table webservers_backend will work only if the server set-up the cookie. If you manage your server to setup this cookie, it may work with the

Re: stick-table and URL

2013-05-13 Thread Emeric BRUN
Hi, I'am not sure the baptiste trick is usable. Please prefer use-server statement: cookie SERVERID insert indirect nocache use-server ip1 if { url_param(SERVERID) memtom1 } use-server ip2 if { url_param(SERVERID) memtom2 } server memtom1 ip1 check inter 5000 cookie memtom1 server memtom2

Re: stick-table and URL

2013-05-13 Thread Emeric BRUN
I was wrong on use-server lines Correct ones: use-server memtom1 if { url_param(SERVERID) memtom1 } use-server memtom2 if { url_param(SERVERID) memtom2 } original message- De: Emeric BRUN eb...@exceliance.fr A: Baptiste bed...@gmail.com Copie à:

Re: stick-table and URL

2013-05-13 Thread Baptiste
Hi Emeric, I'm sure it works. We use the same trick for JSESSIONID cookie, and I can tell you it works. That's why I said to Rui to allow the server to setup the cookie. That said, I'm almost sure your trick doesn't work. I'm pretty sure the cookie SERVERID has been removed by HAProxy when

Re: Multiple Load Balancers, stick table and url-embedded session support

2010-12-09 Thread Hank A. Paulson
Please see the thread: need help figuring out a sticking method I asked about this, Willie says there are issues figuring out a workable config syntax for 'regex to pull the URL/URI substring' but (I think) that coding the functionality is not technically super-difficult just not enough hands

Re: Multiple Load Balancers, stick table and url-embedded session support

2010-12-09 Thread Jeffrey 'jf' Lim
On Thu, Dec 9, 2010 at 7:27 PM, Hank A. Paulson h...@spamproof.nospammail.net wrote: Please see the thread: need help figuring out a sticking method I asked about this, Willie says there are issues figuring out a workable config syntax for 'regex to pull the URL/URI substring' but (I think)

Re: Multiple Load Balancers, stick table and url-embedded session support

2010-12-09 Thread David
On 12/09/2010 08:27 PM, Hank A. Paulson wrote: Please see the thread: need help figuring out a sticking method I asked about this, Willie says there are issues figuring out a workable config syntax for 'regex to pull the URL/URI substring' but (I think) that coding the functionality is not

Re: Multiple Load Balancers, stick table and url-embedded session support

2010-12-09 Thread David
Hi Jeffrey, On 12/09/2010 10:13 PM, Jeffrey 'jf' Lim wrote: On Thu, Dec 9, 2010 at 7:27 PM, Hank A. Paulson h...@spamproof.nospammail.net mailto:h...@spamproof.nospammail.net wrote: Please see the thread: need help figuring out a sticking method I asked about this, Willie says