Hmm, interesting. Its been a while since I last tried it. Last time I used persistent memcache connections with PHP in production it was a diaster :)
On Fri, Mar 15, 2013 at 8:59 AM, Brian Moon <[email protected]> wrote: > On 3/14/13 6:47 PM, Joseph Engo wrote: > >> I would avoid using persistent connections with PHP. They have never >> worked properly on any scale. >> > > That is quite inaccurate. Persistent connections for MySQL were always > discouraged due to some issues in the drivers and the low connection cost > of a MySQL connection. > > Persistent connections with memcached has always been the recommended > method of configuring your PHP. There is a gotcha in the PECL/memcached > client you have to be aware of where you can continue to make new > persistent connections if you call addServer on an already connected > client. Other than that, it works fine. > > As for the TIME_WAIT issue: Are you looking at netstat and being anal or > are you actually trying to solve a problem you are having? If you are using > persistent connections you should be seeing ESTABLISHED connections and not > TIME_WAIT connections. > > I looked around at several of my client side servers and have 800-1000 > TIME_WAIT connections (mostly MySQL) sitting around all the time. They are > not really any harm. > > Brian. > -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
