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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.0, 3.6.0, 4.0.0
    • Component/s: Replication
    • Labels:
    • Replication

      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.

            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            bret.curtis@wdc.com Bret Curtis
            7 Vote for this issue
            29 Start watching this issue