Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3287

How to Configure MongoClient to connect to next available Mongos

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • Cluster Management
    • None

    Description

      We have two Mongos' running, and our web service is registered with two Mongos' in its connection string. Plz correct me if i am wrong, looks like the MongoClient will connect first Mongos in the connection string.

      Problem: When the first Mongos is down, the MongoClient will not connect to next available Mongos

       

      Expectation: We are not sure if this is possible, we are looking for some help to configure the MongoClient to connect to next available Mongos when the Mongos it's connected fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            schen@amica.com shen Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: