Single post

Memcachedb & logs

Well, the memcachedb again ate whole sshd with infinite log.xxxxxxsomething files.

After a lot of digging around, found this memcachedb-guide-1.0. It appeared that memcachedb has db_archive command to purge all un-needed logs!

Just create a following file somewhere, e.g. /root/memcachedb_rotate_logs:


and add following to crontab to rotate memcachedb logs hourly:

0 * * * * /usr/bin/telnet localhost 21201 < /root/memcachedb_rotate_logs

(fix port number if needed).

theme by teslathemes