package
3.7.0+incompatible
Repository: https://github.com/percona/percona-toolkit.git
Documentation: pkg.go.dev
# Functions
BaseDir returns the project's root dir by asking git.
GetMongoDBAddr returns the address of an instance by replicaset name and instance type like (rs1, primary) or (rs1, secondary1).
GetMongoDBReplsetAddrs return the addresses of all instances for a replicaset name.
TestClient returns a new MongoDB connection to the specified server port.
No description provided by the author
# Variables
MongoDBConfigsvr1Port Config server primary's port.
MongoDBConfigsvrReplsetName Replicaset name for the config servers.
MongoDBHost is the hostname.
MongoDBMongosPort mongos port.
MongoDBPassword password for all instances.
MongoDBShard1PrimaryPort is the port for the primary instance of shard 1.
MongoDBShard1ReplsetName Replicaset name for shard 1.
MongoDBShard1Secondary1Port is the port for the secondary instance 1 of shard 1.
MongoDBShard1Secondary2Port is the port for the secondary instance 2 of shard 1.
MongoDBShard2PrimaryPort is the port for the primary instance of shard 2.
MongoDBShard2ReplsetName Replicaset name for shard 2.
MongoDBShard2Secondary1Port is the port for the secondary instance 1 of shard 2.
MongoDBShard2Secondary2Port is the port for the secondary instance 1 of shard 2.
MongoDBShard3PrimaryPort is the port for the primary instance of 3rd cluster (non-sharded).
MongoDBShard3ReplsetName Replicaset name for the 3rd cluster.
MongoDBShard3Secondary1Port is the port for the secondary instance 1 on the 3rd cluster.
MongoDBShard3Secondary2Port is the port for the secondary instance 2 on the 3rd cluster.
MongoDBSSLCACertFile CA file used on all instances.
MongoDBSSLDir is the directory having the SSL certs.
MongoDBSSLPEMKeyFile PEM file used on all instances.
Port for standalone instance.
MongoDBTimeout global connection timeout.
MongoDBUser username for all instances.