I do not think you can see this with mode tcp, because of the lack of
X-Forwarded-For.
Your request could have been possible with mode http with the following
settings:
in haproxy - option forwardfor (I see you already have this enabled)
in squid - (in this order)
logformat squid
Hi,
On Thu, Mar 10, 2011 at 07:40:23PM +0530, Paras Fadte wrote:
Hi ,
I had a query regarding number of conn/sec in Haproxy and with regards to it
following are the details
*Setup*
Machine : Dual core AMD Opteron(tm) Processor 246
Mem:8GB
OS: Ubuntu 2.6.32-24-server x86_64 GNU/Linux
On Wed, Mar 09, 2011 at 04:41:49PM +0200, Florescu, Dan Alexandru wrote:
This works. Problem is that I cannot use acl's like the following:
hdr(User-Agent) -i WinampMPEG/5.60
hdr(Host) -i 80.86.106.35
I guess this is because it receives the tcp stream and doen't analyze headers
anymore.
Hi all,
I do have such log in haproxy:
passenger_proxy passenger_proxy/NOSRV 0/-1/-1/-1/0 503 212 - - SC--
136/136/136/0/0 0/0
can anybody help me to understand how to figure out this issue and where
to dig ?
Thanks in advance.
--
Link
This worked.
Thanks for the help Willy.
-Original Message-
From: Willy Tarreau []
Sent: Friday 11, March 03, 2011 10:39
To: Florescu, Dan Alexandru
Cc: haproxy@formilux.org
Subject: Re: mode tcp with mode http/shoutcast radio issue
On Wed, Mar 09, 2011 at 04:41:49PM +0200, Florescu, Dan
Hi,
I've setup HAProxy to loadbalance the traffic across two web servers that
runs some PHP website (based on JOOMLA, OSCommerce and some other solution)
However I've noticed that the session affinity is not working Out Of The
BOX (which after 2sec of think is quite logical ;))
Does
this is not an HAProxy related problem
What you need is to share the session across all webservers. You have
several ways to do it: memcache, redis, db, filesystem.
We currently are using memcache for this
check your php.ini for session.save_handler
we have something like:
Hi Gabriel,
I've read that HAProxy is capable of keeping a set of http request
directed to the same webserver. (I think the feature is called 'Sticky
Session' on Websphere Cluster)
I've seen this in the documentation :
appsession cookie len length timeout holdtime
Hi Thomas,
We do it like this, haproxy add a cookie, and base on the cookie it will
send it to teh same web server
I'm no haproxy expert but it work for us with a very basic php application.
here are the related config in our haproxy
backend bk-prod
balanceroundrobin
Is it possible to count the number of entries in a stick table and take some
action based on that number?
Failing that is it possible to take some action when a stick-table gets
*full*? Looking at the documentation it looks like the default would be to
refuse new clients when the stick-table gets
Ok that's exactly what I wanted to do.
The default cookie name in PHP is
session.name = PHPSESSID
Is it this cookie name that I should set in HAProxy config ?
Thomas.
On Fri, Mar 11, 2011 at 4:55 PM, Guillaume Bourque
guillaume.bour...@gmail.com wrote:
Hi Thomas,
We do it like this,
I solved my problem.
The issue was I needed to specify the correct stick-table in the
src_get_gpc0 call. The corrected line is:
acl source_is_new src_get_gpc0*(thebackend)* eq 0
On Thu, Mar 10, 2011 at 7:52 PM, Cory Forsyth cory.fors...@gmail.comwrote:
I am trying to make an haproxy
Thomas,
This post really made me smile :-).
HAProxy allows:
non-sticky
Source IP Hash
Source IP Stick table
Cookie (self managed self inserted transparent etc.)
Cookie (based on reading the web servers session cookie)
If your web server(s) are scalable i.e. handles their own sessions in
a
Thomas,
I'm no expert here and In our case we don't truss the application ;-)
So the proposed config will insert a cookie base on the name of the web
server for us (put anything you want) and a returning visitor will end on
the same backend base on the haproxy cookie previously inserted.
Now
15 matches
Mail list logo