cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.2 cron cluster

Magento 2.2 cron cluster

Hello,

our team is running magento 2.2 on an cluster enviroment with load balancer and multiple instances.

Weve installed the magento cronjobs for every instance which now leads to high database load.

 

The question is, is it enough to run magento cronjobs on only one instance?
Or are there tasks to do which are mandatory on instance scope?

If so which?

 

 

2 REPLIES 2

Re: Magento 2.2 css not working

Hi @Crtl

 

Well if you have multiple instance of magento 2 - then yes , you need to set cronjobs for multiple instance , as each instance required cronjobs for scheduling and jobs 

 

But its required only default cronjobs - so you can schedule for the same , Refer this link - https://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2.2 css not working

Hello @Crtl

 

If you are using the same DB for multiple instances then i think you need to create only one instance cron job.

 

 

Becuase code is same for all instance and db is same for all, if cron run mutiple instance same time then become race condition for that and maybe your DB crash.

 

Hope it will help you.

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer