I want to find central point between clusters


I have project which built by NestJs and I want to change my some datas in every 24 hours, I’ve decided to use CronJob for that. But when I run my project by pm2(on different clusters), CronJob works once for every cluster and totally it works for cluster count (if I have 8 cluster, it works 8 times). How can I find central point which pm2 doesn’t separates that and my codes works only one time?

Source: JavaSript – Stack Overflow

November 10, 2021
Category : News
Tags: javascript | nestjs | node.js | pm2

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.