Question
1
Replies
165
Views
Posted: March 1, 2018
Last activity: March 25, 2018
Closed
Solved
Mongo - High availability options
In chat config we are defining a single instance for mongo, and while starting of mongo servers we are mentioning a slave to be linked with mongo master.
Let’s say if master is down (which is defined in chat config)
- Will the chat app be running on slave automatically or do we need to manually change the config on chat app?
- How does chat app know about the slave that is configured on the mongo app end?
- We have tried with adding replica sets for automatic failover, but that din't work because when master/defined instance of mongo is down, chat app has no idea to look for child instance of mongo.
Thanks for your response!
***Edited by Moderator Marissa to update categories***
Hi Anjan,
you can use below configuration in config.json to support mongodb replicaset. This is available from chat 7.22.6 and above.
Thanks,
Srikanth