On Wed, Jan 28, 2009 at 02:57:47PM +0530, vaibhav pol wrote: > Hi I am using haproxy with 2 web server . > > when client send request each time he send query string with parametre > username > > example : http://192.168.2.106:8022/?username=guest > > > and my requirement is when I don't want to use cookies when same username > come in query string it always sent to the same server . > > > as log as no server goes down other wise use rondrobin algorithm. > > > i use url_param in haproxy.conf file > > below is my haproxy configuration file setting . > > > --------------------------------------------------------------------------------- > > global > log 127.0.0.1 local0 info > maxconn 4096 > daemon > > defaults > log global > mode http > option httplog > option dontlognull > option redispatch > retries 3 > maxconn 2000 > contimeout 5000 > clitimeout 50000 > srvtimeout 50000 > > frontend www 192.168.2.106:8022 > default_backend back_std > > > backend back_std > balance url_param username > option redispatch > option httpclose > option forwardfor > server tb1 13.1.1.4:8022 > server tb2 13.1.1.3:8022 > > > ------------------------------------------------------------------------------------------------------------------------- > > but it's not working is any thing i am missing .
It should (unless there's a but, of course). Are you sure that *all* of the users requests contain the username parameter ? And when you say it does not work, what do you observe, precisely ? Willy

