Skip to content
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

Merge connected worker stats with job stats in a single persisted collection #5

Open
rhyslbw opened this issue Jan 27, 2016 · 0 comments
Milestone

Comments

@rhyslbw
Copy link
Member

rhyslbw commented Jan 27, 2016

Now

  • The job server stats are stored in an in-memory collection as it's then unlike to ever be out of sync when the process restarts, and naturally supports multiple instances.
  • The connected workers are tracked in a separate collection and offered in a separate publication. This was done since all connected workers across all app instances must be collected.

Proposal

  • Make JobServer stats persistent since it's also relevant to a single user in the front-end how many total jobServer instances are online, and how many workers are connected to each.
  • Need to use a persistent instance identifier to ensure a process exit or reconnection event is handled and no zombie records are left. Most likely this will be an ENV var
@rhyslbw rhyslbw added this to the 1.0.0 milestone Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant