Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Scheduler executes jobs x N when in cluster mode with N workers #37

Open
cliftonc opened this issue May 28, 2011 · 2 comments
Open

Scheduler executes jobs x N when in cluster mode with N workers #37

cliftonc opened this issue May 28, 2011 · 2 comments
Labels

Comments

@cliftonc
Copy link
Owner

Need to write a simple cluster mode for the scheduler to ensure that only one scheduler is ever in control in cluster mode, could be an interesting excercise re. NodeJS support for multi-cast among members of a cluster or a use of socket.io perhaps?

@shuhblam
Copy link

i am not sure i fully understand that matter at hand here. could you explain in more detail?

@cliftonc
Copy link
Owner Author

The scheduler runs effectively as a background task that is started as soon as the app is, when you run it in cluster mode (node app-cluster), it runs 4 servers - hence, you get four schedulers. This means any job you have configured runs 4 times. We need to change it so that when a scheduler starts, it checks if any other schedulers are running on other nodes (you do this via multicast or by holding a specific port on the server open) and if so, going to sleep.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants