Confused on scaling memcached & persistant connections

Brad Fitzpatrick brad at
Fri Feb 3 02:55:47 UTC 2006

Connections are really cheap nowadays.  If you're seeing a slowdown after
$n connections, you're not using epoll or kqueue it sounds like.  Are you
using a modern Linux/FreeBSD?

- Brad

On Thu, 2 Feb 2006, Mike Lynn wrote:

> maybe somone can help me out - but I'm confused on scaling memcached.
> Right now I've got 7 web servers each with memcached on them.  All webs
> are running apache/php/memcached.   with persistant connections to
> memcached.  Each memcached instance avg 2000 connections on avg - how do
> i scale that?   Memcached is set at 10k connections max - but is seems
> to slow down after 3k connections.  Because the php client lib uses
> persistant connections, which is good, it means that each new web server
> addes 500 persistant connections to each memcached server - so I've hit
> the max???  I don't see a really (good way) to do a truly global cache.
> Perhaps a UDP based memcached....?  Thanks for any help in advance..
> mike

More information about the memcached mailing list