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

Cluster - ClusterWorkers on fresh db #23

Open
uaktags opened this issue May 29, 2019 · 1 comment
Open

Cluster - ClusterWorkers on fresh db #23

uaktags opened this issue May 29, 2019 · 1 comment

Comments

@uaktags
Copy link
Owner

uaktags commented May 29, 2019

clean installation of Debian 9
node 8.16.0
npm 6.4.1
mongod 4.0.1
clean installation - git -b cluster-sync (last)
coin: Elicoin

I don't know if you tested the launch of a new database. When you first run npm , each worker creates records in db (created only once).

I could not always start the index update with the result

Update Stats Completed.
0
@uaktags
Copy link
Owner Author

uaktags commented May 29, 2019

This hasn't been tested, this is due to sync.js being forked by each worker. This is going to require further rewrites of the file by setting up cluster.isMaster. however, this may end up speeding up the generation and stabilty of workers to remove unnecessary db calls.

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

No branches or pull requests

1 participant