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***