I created a swarm in data center A and deployed a 3 container (mongo1, mongo2 and mongo3) cluster of mongodb . Working like a charm one mongo1 being a primary and other two as secondary.
I also created a swarm in data center B, here I deployed single container (mongo10) of mongodb and expose port on 27019
In swarm A I get to master node of mongodb and added mongo10 with rs.add command. Command successful but state is not secondary but connected.
In swarm B of mongo10 I see in the log files that mongo10 does received connection from primary node but don’t know how to get back to primary or any of the secondary nodes. There is not configure of mongo cluster for mongo10.
How can I communicate to mongo1, mongo2 and mongo3 from mongo10. Any idea?