@Tyn, I'll look into sharing a class instance, didn't know that was
possible in APC.
As for the bottleneck, in practice we'd have all 200 share fixed
number of connections. So we might have 5 or 10 connections to each
bucket that are then randomly chosen across all the different
processes...but for my simple example I made them all use the same
pool.
All of the 200 processes *could* open up connections to all 21 at the
same time but it seems that on average it works out to be 18 or 19.
Once connected to a memcache bucket, it doesn't bother to disconnect
until the entire process is finished, since it might have to connect
again anyway.

@Brian Moon, I know the memcache servers can handle having all those
incoming connections, I'm just trying to reduce the number of
ephemeral ports we need on each web server to handle all the outgoing
connections. My understanding is that TIME_WAIT uses up an ephemeral
port the same as ESTABLISHED.


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to