Update README.md
This commit is contained in:
parent
c9af472155
commit
565ab514d9
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ add this line:
|
|||
## Modes
|
||||
In mode 0 (active/passive) only one of the servers are active and the cron entries are commented out on the other servers. You can still edit the crontab on all servers, but cronjobs will only run on the active node
|
||||
|
||||
In mode 1 (active/active) the cron file will be the same on all servers and all cronjobs will run everywhere. If you need som cronjobs to only run in one server and some cronjobs to run on all you can add two entries to the crontab of root on all severs but using different users (called "passive" and "active" in the example below) and differernt modes, e.g.:
|
||||
In mode 1 (active/active) the cron file will be the same on all servers and all cronjobs will run everywhere.
|
||||
|
||||
If you need som cronjobs to only run in one server and some cronjobs to run on all you can add two entries to the crontab of root on all severs but using different users (called "passive" and "active" in the example below) and differernt modes, e.g.:
|
||||
|
||||
```
|
||||
* * * * * /usr/local/bin/cluster_cron.pl passive /mnt/shareddir 0 /var/spool/cron/crontabs >> /mnt/shareddir/cluster_passive.log 2>&1
|
||||
|
|
Loading…
Add table
Reference in a new issue