Configuring MongoDB for high availability

About this task

Beginning in Sametime 12.0, MongoDB clustering is handled during the install process for both Docker and Kubernetes.

Note: In the MongDB URL, if the user name or password includes the following characters, they must be converted by using a percent sign: / ? # [ ] : @.

Configuring MongoDB clustering on Docker

About this task

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

Procedure

  1. Provide a single node MongoDB information while running the prepareDeployement script.
  2. When the prepareDeployement process is complete, prepare your MongoDB cluster URL. For how to prepare the MongoDB URL, see the Connection String URI Format topic in the MongoDB documentation.
  3. 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.
  4. Use the kubectl command to update the sametime-meetings-global-secrets secret configuration file.
    kubectl edit secret sametime-meetings-global-secrets
  5. Inside the sametime-meetings-global-secrets, locate the MongoConnectionUrl section. Replace the value for it with the value from Step 3.
  6. Save your changes.