Re: Reading cookies

From: Aleksandar Lazic <al-haproxy#none.at>
Date: Sun, 29 Jun 2008 00:15:23 +0200


Hi Fabio,

On Sam 28.06.2008 17:34, Fabio Bacigalupo wrote:
>Hello!
>
>I am looking into ways to better scale our system.

[snipp]

>I want to serve all the requests done by guests through a cache. I am
>thinking of Varnish. All requests made by loggedin members should be
>passed directly to one of the two appservers available ATM.
>
>So the setup I thought off would be as follows:
>
>Internet
> |
>======== ==========
>= HAproxy = ---- = Appserver 1 =
>======== | ==========
> | |
>======= | ==========
>= Varnish =---- |---= Appserver 2 =
> ======= ==========

Does this picture http://none.at/Fabio_Bacigalupo.gif match your request?

>The thing I could not figure out yet is how to decide if a request is
>done by a guest or a loggedin member. At application level we make use
>of a session. The session id is saved in a cookie. But the cookie
>itself does not tell haproxy anything about the status of the member.

Does the cookie say anything about if the user is logged in or not?

>Any advice on this question and comments on the setup are appreciated.

You must have a difference for the loggedin user and the anoymous user, could this be used for haproxy?

BR

Aleks Received on 2008/06/29 00:15

This archive was generated by hypermail 2.2.0 : 2008/06/29 00:30 CEST