Configure heartbeat cron
The heartbeat cronjob must be configured and executed as the most important part of Pacemaker.
- By default, you should create a new crontab entry within your OS as follows:
This configuration will run the heartbeat every minute
* * * * * /usr/bin/env php <PATH_TO_MAGENTO_ROOT>/bin/magento pipeline:heartbeat
Another heartbeat interval example
If you need to run the heartbeat less often than every minute, you need to define the
pulse to avoid time gaps within time-based conditions.
- For example, for a heartbeat, which is running every two minutes:
*/2 * * * * /usr/bin/env php <PATH_TO_MAGENTO_ROOT>/bin/magento pipeline:heartbeat --pulse 2