Configuring MongoDB for high availability
This topic covers the steps on how to configure MongoDB for high availability.
MongoDB clustering is handled during the installation process for both Docker and Kubernetes.
Note: In the MongoDB URL, if the user name or password includes the following characters, they must be converted by using a percent sign: / ? # [ ] : @.
Parent Topic: Clustering and high availability
Configuring MongoDB clustering on Docker
In the custom.env configuration file on the Sametime server, update the MONGO_URL field. For information about how to create the MongoDB URL, see the Connection String URI Format topic in the MongoDB documentation.
Configuring MongoDB clustering on Kubernetes
-
Provide a single node MongoDB information while running the prepareDeployment script.
-
When the prepareDeployment process is complete, prepare your MongoDB cluster URL. For more details, see Connection String URI Format.
-
Use Base64 encoding to encrypt your MongoDB URL.
You can review online websites that provide Base64 encoding or you can set up one on your own.
-
Use the kubectl command to update the
sametime-meetings-global-secrets
secret configuration file.kubectl edit secret sametime-meetings-global-secrets
-
Inside the
sametime-meetings-global-secrets
, locate theMongoConnectionUrl
section. Replace the value for it with the value from step 3. -
Save your changes.