Skip to content

Close unused persistent memcached connections after specified timeout. #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arjenschol opened this issue Apr 23, 2013 · 2 comments
Closed
Labels

Comments

@arjenschol
Copy link
Contributor

Persistent connections to memcached appear to be only closed when apache/php-fpm
is restarted.

Our persistent identifier is based on the application version, so old data for
some caches is automagically expired. However, the old persistent connections
won't be closed and keeps lots of unused tcp connections open.

Test script:

@mkoppanen
Copy link
Member

Hmm, I wonder if it would be just easier to reload apache / php-fpm during deployment? I'll take a look at the timeout option

@sodabrew
Copy link
Contributor

sodabrew commented Feb 7, 2017

libmemcached handles the underlying connections for us, and there are no options for terminating connections to idle backend servers: http://docs.libmemcached.org/memcached_behavior.html

@sodabrew sodabrew closed this as completed Feb 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants