How to run the dbhash command on MongoDB config servers

by akira-kurogane
GNU/Linux ◆ rxvt-unicode-256color ◆ bash 3352 views

A short demo showing a mongo shell command to print the config db’s dbhash output to the terminal.

(N.b. This diagnostic technique is probably no longer useful when using MongoDB >= 3.4 because the replicaset-style config servers no longer have the possibility to get out of sync like the older “SCCC”-style config servers could in weird network environments.)

A variation showing how to fetch the same dbhash output in parallel from three config servers at once is in the latter half of the demo.