This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* initialSyncProgress | |
* @author Alex Bevilacqua <alex@alexbevi.com> | |
* | |
* Can be run against a MongoDB 3.4+ mongod that is in STARTUP2 (intitial sync) state to gain some | |
* insight into how the sync is progressing. This script WILL NOT tell you how long until the sync | |
* is complete, but based on how the script reports progress can be used to estimate this. | |
* | |
* usage: | |
* mongo --quiet --eval "load('initialSyncProgress.js'); initialSyncProgress();" |