Hi there

I have Pound 2.6 installed. Two instances of my back-end application are
running on different ports and I am trying to load-balance (using a
sessionID stored in a cookie).

I noticed in the Pound log that requests (from a same client) are not all
directed toward a same application/port, and I am  now trying to
trace/figure out why.

In the Pound config file I have "LogLevel = 2". Is there some more detailed
logging where I can trace my issue (example trace how the session/cookie is
handled in Pound)?

An extract of my Pound log:

...
Sep  5 17:58:40 VINCLIENTPROD pound: 192.168.10.12 POST /json?1346860699038
HTTP/1.1 - HTTP/1.1 200 OK (192.168.10.41/- -> 192.168.10.41:8099) 0.019 sec
Sep  5 17:58:40 VINCLIENTPROD pound: 192.168.10.12 GET /html/dashboard.html
HTTP/1.1 - HTTP/1.1 200 OK (192.168.10.41/- -> 192.168.10.41:8088) 0.001 sec
...


An HTTP header looks like:

GET /html/dashboard.html HTTP/1.1
Host: 192.168.10.41
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101
Firefox/15.0 FirePHP/0.7.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http://192.168.10.41/html/index.html
Cookie: VinClientSession=c497289a-7b58-4f2b-bff2-1334445370fd
x-insight: activate


And my pound config looks like:

######################################################################
## global options:
User "www-data"
Group "www-data"
#RootJail "/chroot/pound"
## Logging: (goes to syslog by default)
## 0 no logging
## 1 normal
## 2 extended
## 3 Apache-style (common log format)
LogLevel 2
## check backend every X secs:
Alive 30
## use hardware-accelleration card supported by openssl(1):
#SSLEngine "<hw>"
# poundctl control socket
Control "/var/run/pound/poundctl.socket"

######################################################################
## listen, redirect and ... to:
ListenHTTP
  Address 192.168.10.41
  Port 80
End
Service
  BackEnd
    Address 192.168.10.41
    Port 8088
  End
  BackEnd
    Address 192.168.10.41
    Port 8099
  End
  Session
    Type COOKIE
    ID "VinClientSession"
    TTL 300
  End
End


Thanks & cheers,
Peter

Reply via email to