John,
interesting - so balance source goes to the same targ server even if the target server is down?
Thanks,
Richard Genthner
System Administrator
Symplicity
tel 703.351.0200 x 8051
web www.symplicity.com
On 04/26/2011 08:08 AM, Richard Genthner wrote:
> John,
> What would be the best way to balance this ? not to use haproxy
> for memcache and have the php memcached lib handle the balancing ?
> Basically all the services that our appplications depend upon we are
> going to move to be proxied with haproxy. Like elastic search is a
> cluster, but if you point any one of them data is known by all
> members. I just memcached that is giving us issue if a server fails.
> would Roundrobin better or just leave memcached out of haproxy ?
> Thanks,
>
> Richard Genthner
> System Administrator
> Symplicity
> tel 703.351.0200 x 8051
> webwww.symplicity.com
>
> On 04/26/2011 08:01 AM, John Marrett wrote:
>> Richard,
>>
>>> backend memcached_servers
>>> mode tcp
>>> balance source
>> Your use of balance source is probably the cause of the issue. I
>> assume that all of your connections are sourced from the same IP
>> address. This configuration will send all requests from the same
>> source IP address to the same memcached server.
>>
>> I think I know the reason you are trying this approach; you want to
>> ensure that requests for a specific object are always sent to the same
>> memcached server. I am not sure how you can achieve this with haproxy
>> however. I thought that memcached was often load balanced using the
>> client library but I'm far from an expert.
>>
>> -JohnF
>>
Received on 2011/04/26 16:18
This archive was generated by hypermail 2.2.0 : 2011/04/26 16:30 CEST