VMmanager: Cron jobs

From ISPWiki
Jump to: navigation, search
Hierarchy: VMmanager KVM ->OTHER
VMmanager Cloud ->OTHER

This article describes cron jobs in VMmanager OVZ / KVM / Cloud

Cron jobs that are used in all VMmanager versions

*/5 * * * * /usr/local/mgr5/sbin/cron-core sbin/mgrctl -m core sysinfostat - collects statistics on server resources consumption for the Dashboardpage.

0 3 * * * /usr/local/mgr5/sbin/cron-core sbin/mgrctl -m core deletearchivelogs - deletes old logs from the var/logs/ directory (logs of other directories won't be deleted).

14 3 * * * /usr/local/mgr5/sbin/cron-core sbin/usagestat - collects statistics on the most popular panel's functions.

1 5 * * * /usr/local/mgr5/sbin/mgrctl -m vmmgr osmgr.fetch - downloads OS templates in a storage.

1 5 * * * /usr/local/mgr5/sbin/mgrctl -m vmmgr osmgr.updateall - updates OS templates.

5 3 * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/pkgupgrade.sh - starts update of packages on the server.

If a package is specified (pkgupgrade.sh сoremanager), packages only of the control panel will be update, otherwise, it will updates all the packages of the operating system.

* * * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr periodic - starts periodic tasks in the control panel, such as check of connections between nodes, etc.

/5 * * * * /usr/local/mgr5/sbin/mgrctl -m vmmgr problems.autosolve - starts automatic troubleshooting in the Notifications module.

55 3 * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr recipemgr.update - updates a list of recipes (Learn more "Recipes")

VMmanager KVM cron jobs

*/5 * * * * /usr/local/mgr5/sbin/cron-vmmini sbin/mgrctl -m vmmini problems.autosolve - automatically resolve issues in the "Notifications" module.

*/5 * * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/poolcache --cmd update - updates information about storages.

*/5 * * * * /usr/local/mgr5/sbin/mgrctl -m vmmini pool.refresh - updates storage information.

*/5 * * * * /usr/local/mgr5/sbin/mgrctl -m vmmini collectstat - collects statistics.

1 * * * * /usr/local/mgr5/sbin/mgrctl -m vmmini foldstat - calculates statistics.

*/5 * * * * /usr/local/mgr5/sbin/mgrctl -m vmmini collectstat.flushcounters - resets statistics.

*/5 * * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr emailnotify.send - checks email notifications, and sends them if any.

VMmanager Cloud cron jobs

*/3 * * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr cloud.nodechecker - checks cluster quorum (if a node is included into quorum).

*/10 * * * * /usr/local/mgr5/sbin/cron-vmmgr sbin/mgrctl -m vmmgr cloud.corochecker - checks the corolistener status.

*/5 * * * * /usr/local/mgr5/sbin/nodereplication -c mgrfiles - runs replication of panel files that are required for migration of the master-node.

12 */6 * * * /usr/local/mgr5/sbin/nodereplication -c ostemplates - runs replication of OS templates.

VMmanager OVZ cron jobs

*/5 * * * * etc/scripts/stat-collect.sh /usr/local/mgr5 - collects containers resources consumption statistics.

*/4 * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vmhostnode.check.reboot - checks if the system requires reboot.

* * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.backup.check - checks backup status.

* * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.restore.check - checks status of backup recovery.

* * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.migrate.check - checks migration between nodes.

* * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.convert.check - checks conversion of disk into different formats.

*/15 * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.state.check - compares the status of containers on cluster nodes with the status in the panel's database.

*/5 * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.cpulimit.calculate - calculates CPU limits for containers.

0 0 * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.sync - updates container parameters (RAM, CPU, etc.) in the database with the data from cluster nodes.

*/3 * * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr vm.reshape operation=execute - applies or re-configures traffic shaping for every container.

0 0 * * * /usr/local/mgr5/sbin/cron-vemgr sbin/mgrctl -m vemgr collectversions - collects information on vemini versions on cluster nodes.