Change the configuration live
Cluster parameters change without restarting the nodes.
Change cluster parameters without restarting any node, with teseladb admin config or with setClusterParameter from
mongosh.
Requirements
- Access to
teseladb adminon a node of the cluster.
Read a parameter
Shell
teseladb admin config get teselaHistoryRetentionChange it
Shell
teseladb admin config set teselaHistoryRetention '{"seconds": 172800}'The value of set is a document in Extended JSON. Start options, such as --cores, need the node restarted.
Check
After the change, config get returns the new value on any node of the cluster, not only on the one you asked.
Common problems
config setfails withNoSuchKeybecause the parameter does not exist or is misspelled.