Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Spring boot connect to MongoDB replica set running with an Arbiter

$
0
0

My application is a Spring boot application and the application configuration properties file look like:

....
spring.data.mongodb.host=ip
spring.data.mongodb.port=27017
spring.data.mongodb.admin.database=admin
spring.data.mongodb.database=myDB
spring.data.mongodb.username=su
spring.data.mongodb.password=su1$
....

Now the thing is for high availability MongoDB has been moved to a Primary-Secondary-Arbiter setup. What changes should I do in order to connect to this. Tried separating with comma but that did not help.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>