Skip to content

Instantly share code, notes, and snippets.

@davidkeen
Created October 8, 2014 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidkeen/4b40920cef4ba1ee5ab1 to your computer and use it in GitHub Desktop.
Save davidkeen/4b40920cef4ba1ee5ab1 to your computer and use it in GitHub Desktop.
AMEE index synchronisation crontab
# Keep the 1 most recent Lucene snapshots every 30 minutes
*/30 * * * * /var/www/apps/amee-platform/current/bin/snapcleaner -N 1 -d /var/www/apps/amee-platform/lucene
# Check the slaves are up to date
0 * * * * /var/www/apps/amee-platform/current/bin/slavecheck -d /var/www/apps/amee-platform/lucene
# Pull down and install any new Lucene snapshots every 5 minutes (but leave time for the snapshot to happen first)
1,6,11,16,21,26,31,36,41,46,51,56 * * * * /var/www/apps/amee-platform/current/bin/snappuller -M amee-user@master-host.example.com -P 18983 -D /var/www/apps/amee-platform/lucene -S /var/www/apps/amee-platform/lucene -d /var/www/apps/amee-platform/lucene && /var/www/apps/amee-platform/current/bin/snapinstaller -M amee-user@master-host.example.com -d /var/www/apps/amee-platform/lucene -S /var/www/apps/v3-staging.amee.com/lucene
# Keep the 1 most recent Lucene snapshots every 30 minutes
*/30 * * * * /var/www/apps/amee-platform/current/bin/snapcleaner -N 1 -d /var/www/apps/amee-platform/lucene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment