-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using meteorhacks:cluster my 8 core processor is running the job 8 times #56
Comments
Hey @jamesgibson14 - Did you find a workaround to this? If not, can you provide a repo with a reproduction? |
No I didn't, I just turn off multi-core for now. On Mon, Sep 14, 2015 at 3:41 PM, Zoltan Olah [email protected]
|
I have the same problem. ...! |
Any updates on this problem ? |
I had the same issue I managed to circumvent by checking the worker number and the environment:
It's dirty, I'm ashamed to show such code but it worked so far. |
Can we have an update. I'm not really sure but I have 4 clusters on the same computer doing a mongodump. It looks like some of them don't do the task and let only one do the tasks. After quick log of the process.env.CLUSTER_WORKER_ID on the job, it looks like the last worker do the task. |
@ko0stik I am using meteorhacks:cluster package as well on a 2 core system. To prevent the jobs from being scheduled twice I used the code you posted. Just wondering if you've had any issues with it? Seems to do the trick |
Hey @sferoze. I stopped using |
Same problem and same solution over here. In fact, We've noticed that if (!proces.env.CLUSTER_WORKER_ID) {
// code here runs only in one instance
} |
I just started testing the Meteorhack:cluster package and the multi-core flag, but when I started up my project syced-cron started running all the jobs 8 times (8 core machine).
The text was updated successfully, but these errors were encountered: