top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Lot of mongos processes are being created when sharded cluster is being initialized first time?

+1 vote
279 views

I am creating a sharded cluster with a 2 node config server replicaset.Due to some reason, the config server replicaset did not get created/setup properly.At this time, I started a mongos process configured to connect to this CSRS and on that box, I see lot of mongos processes getting created

Why wouldnt the mongos process just fail instead of keeping re-spawning and trying to connect to the CSRS? Related to this, how do we check (from an external script) that the CSRS is up & available before starting a mongos process?

The docs (https://docs.mongodb.com/manual/tutorial/troubleshoot-sharded-clusters/#sharding-config-servers-and-availability ) do mention that the CSRS should be available when you first initiate a sharded cluster, but does not mention how to do it.

posted Oct 4, 2016 by Deepak Dasgupta

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

I am in the process of migrating a replica set from a data center to AWS, but when I checked the settings, I noticed that the Sharding is not enabled, yet they are using 3 MongoS / Routers and 3 MongoC / Config servers - So since Sharding is not used in the current system, would it be safe to migrate the replica sets and not use MonogoS nor MongoC ? Can the users connect directly to Mongo database replica set without using MongoS ?
Or should I use at least 1 MongoS and 1 MongoC config server ?

0 votes

I thought the time limit for Mongos to connect to Mongod was hard coded to 30 seconds. But some times after less than 2 seconds I see the following exception in the mongos logs -
Failed to connect to HOST:27017 - ExceededTimeLimit: Operation timed out
Any idea why?

0 votes

I have a sharded MongoDB cluster, with config serever configured as a replica set of 4 nodes. All cluster components use MongoDB v. 3.4.6.

I would like to add another cluster using separate storage shards from the first one, but I would like to use the same config server RS for both of them.

Is such configuration possible, or should I use separate RS for the other cluster config server?

...