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

Mongos process not starting if more than 3 config servers in the process arguments

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.6
    • Component/s: Sharding
    • Labels:
    • Environment:
      Linux CentOs 5.7/5.8
    • Linux

      Hi,

      For more redundancy i had created 5 config server process in 5 different machines, and added the 5 config server information in mongos process.
      When i try to start mongos process, mongos process is failed to start with the below error

      Mongos server process:

      1. mongos --configdb host01:47720,host2:47720,host3:47720,host4:47720,host5:47720 --pidfilepath /var/run/mongos-57720.pid --port 57720 --fork --logpath /var/log/mongos-57720.log --logappend --quiet
        Mon Dec 9 07:15:55.921 need either 1 or 3 configdbs
        #

      I did not find any error or any other logs updated in the mongos logs, straight away it's though "need either 1 or 3 configdbs" message on screen and exit.

      Config servers active and running
      On host 1
      root 30859 1 0 07:12 ? 00:00:00 /usr/bin/mongod --configsvr --port 47720 --smallfiles --dbpath=/data/configSrv-47720 --fork --logpath /var/log/configServer-47720.log --logappend --quiet

      On host2
      root 8371 1 0 07:08 ? 00:00:00 /usr/bin/mongod --configsvr --port 47720 --smallfiles --dbpath=/data/configSrv-47720 --fork --logpath /var/log/configServer-47720.log --logappend --quiet

      On host3
      root 9428 1 0 07:12 ? 00:00:00 /usr/bin/mongod --configsvr --port 47720 --smallfiles --dbpath=/data/configSrv-47720 --fork --logpath /var/log/configServer-47720.log --logappend --quiet

      On host4
      root 14085 1 0 07:12 ? 00:00:00 /usr/bin/mongod --configsvr --port 47720 --smallfiles --dbpath=/data/configSrv-47720 --fork --logpath /var/log/configServer-47720.log --logappend --quiet

      on host5
      root 18046 1 0 07:12 ? 00:00:00 /usr/bin/mongod --configsvr --port 47720 --smallfiles --dbpath=/data/configSrv-47720 --fork --logpath /var/log/configServer-47720.log --logappend --quiet

      I am not sure why mongos process is not starting, mongos process will it allow maximum three config servers only?

      Could you please let me know why its not allowing to add more than 3 configdbs?

      Thanks & Regards
      Krishnachaitanya

            Assignee:
            Unassigned Unassigned
            Reporter:
            kthummur Krishnachaitanya Thummuru
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: