I'm looking to try something out and would like some advice from the experts. We have a MongoDB replica set in a self-hosted data center. We're starting to host some new applications in Azure and there is some data that needs to be shared between applications hosted in the data center and an application hosted in Azure. The application hosted in Azure only needs read-only access so I was thinking of adding some replica nodes on Azure worker roles. Note that we already have MongoDB running running in Azure worker roles for the application that is hosted in Azure.I'm looking at this documentation as a guide: http://docs.mongodb.org/manual/tutorial/deploy-geographically-distributed-replica-set/
- Will using a connection string that only specifies the "read-only in Azure nodes" servers be guaranteed to only connect to those servers? Or given that they're part of the replica set lead to connections going to any of the servers in the replica set?
- The nodes in Azure can never be voted as the primary, nor should they really ever have a vote. If I set the Azure nodes to be non-voting members does that also mean they cannot be voted the primary?
- Is there anything else that I have not mentioned that I should be thinking about?
Thanks in advance!