Questions tagged [sharding]

51 questions
1
vote
1 answer

CouchDB deleted database shards

Currently running clustered CouchDB v3.1.1 on an AWS EC2 Instance q=2 n=3 Number of Nodes: 1 I have moved the database directory to another drive on my VM. But can't find any on the documents regarding the files under /var/lib/couchdb/shards or…
1
vote
0 answers

mongodb, remove one of the replica set's from a sharded cluster

I need to remove filed server01 (currently offline for a long time). The configuration looks like this: shards: { "_id" : "mongo1", "host" : "mongo1/server01:27017,server02:27017,server03:27017" } { "_id" : "mongo2", "host" :…
iNio
  • 45
  • 1
  • 4
0
votes
0 answers

Different sharding chunks size in MongoDB

I have a problem in a MongoDB Sharding deployment. I've got 4 replicasets, all of them with a very similar chunks. But the estimated data per chunk is very different in all of them. mongos> db.hadCompressed.getShardDistribution() Shard rsmmhad01 at…
RbT
  • 1
  • 1
0
votes
0 answers

MongoDB sharding replicaset overload when I stop the secondary

I've got a MongoDB Sharding with 8 servers, and 4 replicasets. Each replicaset has primary, secondary and arbiter. The distribution is something like this: - RS01 -> Server1A (primary), Server1B (secondary) - RS02 -> Server2A (primary), Server2B…
RbT
  • 1
  • 1
0
votes
0 answers

Unable to add a mongod server in local network as shard

I'm trying to build a small cluster using mongodb sharding. In node1 and node2, mongod is started. In node1, config server and mongos are started. All listening 0.0.0.0 with exclusively allocated ports. When I use mongo to login mongos in node1, I…
Kun Ren
  • 101
  • 3
0
votes
1 answer

Mongodb sharded cluster architecture

I have a mongodb cluster on aws. In order to reduce network latency I want to have multiple shards in different regions. In each region there will be the application nodes that connect to the localhost mongos. How can I ensure that the mongos will…
0
votes
1 answer

mongodb sharding - launch mongos with mongos.conf

We are currently setting up a sharded cluster with MongoDB, config servers have been set up using a configuration file : mongod.conf pointing out alternative paths for data and logs folders : systemLog: destination: file path:…
Irrational
  • 35
  • 2
  • 6
0
votes
1 answer

Authentication in a Mongo Sharded Cluster

I have a mongo shared cluster and replica sets: The ShardA Replica set: A1. 10.77.14.241 A2. 10.77.14.242 AA. 10.77.14.243 Arbiter Some parameters of…
Dimaf
  • 181
  • 1
  • 7
0
votes
0 answers

Replicated MongoDB server slower than simple shards

I tried to compare the performance of a sharded configuration against a sharded and replicated configuration. The sharded configuration consists of 8 shards each running on three different machines thereby constituting a total of 24 shards. All 8 of…
displayName
  • 101
  • 3
0
votes
1 answer

How to recover a degraded MongoDB sharded cluster?

I've had problems with a MongoDB replica set of my sharded cluster. The current status of the nodes is: node1: primary (but apparently vetoed by node3 that needs to sync) node2: rollback (it was the primary before) node3: can't sync node4: delayed…
Icu
  • 1,425
  • 3
  • 16
  • 25
0
votes
2 answers

Restart tomcat on two different servers at same time

We are running the Apache solr on two servers. Unfortunately on heavy load of indexing (guess) servers going down. We are manually restarting the tomcat each time. When I google I find the way two restart tomcat automatically using vm options…
Gowri
  • 113
  • 1
  • 5
0
votes
1 answer

MongoDB sharding authentication with multiple keyFile's

I have configured MongoDB with sharding something like below. Shard1 Shard2 Shard3 -------- -------- ------- rs1(Pri) rs1(Sec) rs1(Sec) rs2(Sec) rs2(Pri) rs2(Sec) rs3(Sec) rs3(Sec) rs3(Pri) Now, I am planning to have…
vareda
  • 70
  • 1
  • 7
0
votes
1 answer

How would I template an SLS using saltstack

I'm trying to do proof of concept with Mongodb(sharding) and Id like to run a command every time I spin up a new cluster without having to add lines in all my sls files. My current init is as follows: mongo Replica4:27000…
secure212
  • 228
  • 1
  • 3
  • 10
0
votes
1 answer

What's special in restoring a DB in a MongoDB sharded cluster?

I'd like to migrate a DB from a replica set to another which belongs to a sharded cluster. Till now, this cluster has got only 1 shard, and no collection or database is really sharded. I mongodumped and restored this DB. From one of the sharded…
Icu
  • 1,425
  • 3
  • 16
  • 25
0
votes
2 answers

remove a mongodb replica set when into a sharding cluster

I have this configuration: mongos> db.adminCommand('getShardMap') { "map" : { "RS13" : "RS13/mongo09-02:27003,mongo09-01:27001", "RS13/mongo09-02:27003,mongo09-01:27001" : "RS13/mongo09-02:27003,mongo09-01:27001", "RS26" :…
freedev
  • 323
  • 5
  • 17