Skip to content

Instantly share code, notes, and snippets.

@mperham
Created February 27, 2013 18:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperham/5050311 to your computer and use it in GitHub Desktop.
Save mperham/5050311 to your computer and use it in GitHub Desktop.
monit causes memcached performance issues
--- a/site-cookbooks/monit/templates/default/memcached.conf.erb
+++ b/site-cookbooks/monit/templates/default/memcached.conf.erb
@@ -2,5 +2,5 @@ check process memcached
with pidfile /var/run/memcached.pid
start program = "/etc/init.d/memcached start"
stop program = "/etc/init.d/memcached stop"
- if failed port 11211 protocol memcache 4 times within 6 cycles then restart
+ if failed port 11211 4 times within 6 cycles then restart
if 5 restarts within 5 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment