Sharded cluster with unsharded database

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: None
    • None
    • Environment:
      Linux RHEL6
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We have a sharded cluster setup with 2 shards.
      We have already a database with sharding and tagging on it enabled.

      Now we have the requirement for a new database that does not need to be sharded. But it should live on the same sharded cluster environment.

      What I did so far is,

      • connected to one mongos router
      • created the database
      • created a user in this database

      I tried then to verify the user credentials. It only worked on one mongos. Not on the others.
      I tried to created then the user again on one of the other mongos routers.
      It worked on one, on the other I got the message the users already exists.

      Our application that started writing data into a collection.
      This collection is not visible on one mongos router. Probably the one where I first created the user.

      Any idea why it's not visible on one mongos?

      What is the correct way to have a unsharded database/collection on a sharded cluster?

      Thanks
      Marco

            Assignee:
            Unassigned
            Reporter:
            Marco Schirrmeister
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: