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

create two mongod services on windows 2008 server possible?

      would like to run two processes of mongo as service.
      one as primary, one as arbiter

      1)
      "C:\Program Files\MongoDB\bin\mongod" --logpath "e:\data\logs" --logappend --dbpath "e:\data\db" --directoryperdb --replSet cadt --rest --keyFile "E:\data\cadt_repl_key_file.txt" --install

      2)
      "C:\Program Files\MongoDB\bin\mongod" --dbpath "e:\data\arb\db" --logpath "e:\data\arb\logs" --port 30000 --rest --replSet cadt --keyFile "E:\data\cadt_repl_key_file.txt" --serviceName MongoDBArbiter --serviceDisplayName "Mongo DB Arbiter" --serviceDescription "Arbiter for Mongo DB Server" --install

      second service constantly restarts, whereas first one is working fine and also has secondary replication set on another machine working.
      port 30000 is not in use elsewise.
      but port 30000 appeared to be served by first service, too - in a strange pending state according to netstat: SYN_SEND
      I can add arbiter to replset config but of course it's down.

      I read something, that mongod checks on startup, if another process with the same name is already running.
      a workaround to copy binaries into different folder didn't work either - same restarting effect.

      I don't know whether this is a bug or just my stupidity - so it's "just" a question ...

      YHIA

      Stefan

            Assignee:
            tad Tad Marshall
            Reporter:
            smadep Stefan Rauchegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: