You are currently browsing legacy 5.0 version of documentation. Click here to switch to the newest 5.1 version.
Admin JS Console
Do not use the console unless you are sure about what you're doing. Running a script in the Admin Console could cause your server to crash, cause loss of
data, or other irreversible harm.
1. Select the target for the script you want to run. The options are
2. If you selected
Database as your target, use this dropdown menu to select which database to run the script against.
4. The output of the script.
This is a partial list of operations that can be used from the console. The operations are sorted into endpoints with a common parent path.
||Cluster Topology ID||Force this server to leave its cluster and change state to
This method takes a cluster topology ID. If
||Cluster node tag||Force this server to leave its cluster and bootstrap a new cluster (in which it is the only node and is in state
This method takes a node tag. If
||Set the term number of this server to the first parameter - a number of type
If you pass a number smaller than the current term, the server and cluster retain their current term number - this can be used to break an election that doesn't end on its own, i.e. when the cluster is stuck in "voting in progress".
The second parameter is a
||boolean||Set this value to true to make this server request the raft logs from the leader node of its cluster. This will allow the server to resynchronize.|