Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-35

Private IP and private hostnames vs Elastic IP and public hostname configuration in Amazon Ec2

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Some parts of mongodb seem to be sensitive to IP's vs hostnames when it comes to using config servers. I was wondering if you had a best practice of what set of IPs/hostnames we should use when configuring mongodb. For example :

      replSet configurations such as rs.add() or adding members to the config. rs.initiate() always uses the private hostname for the first server but we could create the config manually and then initialize with that if public hostnames are the way to go.
      configsvr configurations such as db.runCommand(

      { addshard : "replsetname/<private or public hostname>:port"}

      )
      mongos --configdb <private ip, private hostname, elastic ip, or public hostname>:port,,...

      I would like to make sure we are using the right settings for all of this while in the cloud.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            rford Robert Ford
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              13 years, 21 weeks ago