Hi Kamil,

On Thu, Mar 15, 2012 at 10:17:21AM +0100, Kamil Gorlo wrote:
> Hi guys,
> 
> I want to use HAproxy as a LB to my HTTP API, but I want to balance
> requests based on some route_id provided either in cookie or in URI
> (flash apps cannot set headers in requests). It looks that only
> appsession supports reading URI,. Is there any way to do this with
> cookie option? Or how hard will it be to implement this, eventually?

Could you please explain the complete workflow, who sets the initial
cookie and how, then how it is presented by flash requests ? Maybe
there are already solutions to this, maybe this needs some development
but it's hard to tell what has to be done without knowing the exact
steps.

> I can't use appsession since as far as I understand it only work if I
> have one process - in my environment this is not acceptable (I will
> have multiple LB's to get high-availability and scalability - HAproxy
> will be paired with stud to terminate SSL and this will probably need
> more than two machines).

Well, it could probably be cheaper to have only stud on some machines
and then send everything to a single haproxy instance. Also, do you
really need multiple studs ? BTW, what will you use to balance your
studs and using what algorithm ?

Regards,
Willy


Reply via email to