I run a webstore here at WebFaction using Satchmo, the eCommerce solution for Django. We recently found that our site stopped processing Authorize.net transactions, and after some digging around I finally found the culprit: Satchmo uses the cache to store and retrieve credit card information, and somehow memcached had stopped running in my account. How can I set up a notification if memcached gets shut down again? Also, why and how would it have been shut down? asked 28 Apr '12, 10:12 kcharvey |
You could run a cronjob to monitor your memcache process. On my personal account, I run the following script via cron. I am not using a socket, but this should still work.
Then my cronjob is set up like this:
This will run your script every 5 minutes to check if memcache is running and restart it if it is not. You could also add to the script to send an email depending on the status. As for why it would have been shutdown, it could have been that the server was restarted and there is no process to restart your memcached process. Or, in some cases, the processes could have been killed because your processes have gone over your account's memory limit. Hope that helps. answered 28 Apr '12, 11:15 bmeyer71 ♦♦ seanf |