Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36603

Support for multiple hostnames and IPs in MongoDB replica sets for high availability

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • 3.4.0, 3.6.0, 4.0.0
    • None
    • Replication
    • None

    Description

      Currently MongoDB can listen/bind on multiple IPs, but replicasets can only be connected to by either one hostname, fqdn or ip which makes replicasets not highly available without the use of 3rd party software.

      There are solutions, such as using round-robin DNS, but they require logic on the application side to handle when the mongodb client cannot connect to an IP that was already resolved to a non-working network IP address, upwards to 50% of the time in a dual-network setup where one network is unavailable. Other solutions have their own issues as well.

      Having a replicaset able to accept connections from multiple network IP addresses would resolve the need for 3rd party software and alleviate the need for an application to be re-written.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-repl Backlog - Replication Team
              bret.curtis@wdc.com Bret Curtis
              Votes:
              5 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated: