uaktags / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

Cluster - ClusterWorkers on fresh db #23

Open uaktags opened 5 years ago

uaktags commented 5 years ago

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 commented 5 years ago

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.