Confused on scaling memcached & persistant connections (w/ the
PECL client)
Jehiah Czebotar
jehiah at gmail.com
Sat Mar 11 03:10:24 UTC 2006
I use the python memcache client, and i'm not sure if i mentioned it
on the list before or not, but I found it pretty easy to write a
pooling memcache class. While I agree with the comments about linux
being able to handle the connections, a smart use of resources is
always nice, and a pooling class addresses that in a much
easier/cleaner way than a proxy would. For me it dropped my
connections to a tenth of their previous number.
http://jehiah.com/download/MemcachePool.py.txt
--
Jehiah
On 3/10/06, Brad Fitzpatrick <brad at danga.com> wrote:
>
> "What's all this talk about reducing connections? With epoll/kqueue you
> can get a ridiculous number of connections. How's a proxy daemon going
> to help at all? Then your proxy daemon is going to have a ridiculous
> number of connections (which is no problem, if you use epoll/kqueue in
> the proxy daemon), but now you have latency increases."
>
>
> - Brad
>
More information about the memcached
mailing list