Configuring MongoDB for high availability
This topic covers the steps on how to configure MongoDB for high availability.
About this task
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: / ? # [ ]
: @.
Configuring MongoDB clustering on Docker
About this task
Configuring MongoDB clustering on Kubernetes
Procedure
- 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.