Questions tagged [mongodb-cluster]
43 questions
1
vote
3 answers
Mongodb cluster Kubernetes Stateful set is not deleting
I have created Mongodb stateful set using mongodb kubernetes operator.
Now I want to delete that stateful set from kubernetes dashboard, but it is getting recreated again and again.
How do we delete stateful set permanently so that it doesn't get…

Anonymous Creator
- 2,968
- 7
- 31
- 77
1
vote
1 answer
MongoDB Replication Info Results
I want to understand the following:
First-Third execution of db.printSlaveReplicationInfo() results to “0 secs (0 hrs) behind the primary”
Fourth execution of db.printSlaveReplicationInfo() results to “4 secs (0 hrs) behind the primary”
Fifth and…

Ralph Anthony Planteras
- 23
- 1
- 4
1
vote
1 answer
MongoDB Cluster Shard with no primary and only one secondary active
My MongoDB Sharded Cluster has 3 shards with each shard running on 3 replicas. To summarize:
Config Server:
shardcfg1.server.com:27018
shardcfg2.server.com:27018
shardcfg3.server.com:27018
Shard1:
shard11.server.com:27000 (P)
…

Sarthak Sawhney
- 432
- 4
- 14
1
vote
1 answer
mulitple external name in kubernetes service to access the the external Remotely hosted mongodb with connectionstring
I would like to connect my Kubernetes Deployment to a remotely hosted database with URI.
I am able to connect to remotely hosted database with URI using Docker. Now I'd like to understand how I can specify multiple external names in Kubernetes…

Arun Bharadwaj
- 11
- 3
1
vote
0 answers
Add mongo's new replica automatically to the mongo cluster
I have docker -swarm with 3 workers nodes (mongo container on each one). I configured mongo-cluster ("rs0").
When I scaled mongo service (eg. docker service scale test_mongo1=2) I saw new mongo's container but this mongo is not in the cluster.
How…

Bożek Mariusz
- 117
- 10
1
vote
1 answer
spark connects to mongoDB sharded cluster, but no data is fetched
Environment:
Four Debian 9 servers (named visa0, visa1, visa2, visa3)
Spark (v2.4.0) cluster on 4 nodes (visa1: master, visa0..3: slaves)
MongoDB (v3.2.11) sharded cluster con 4 nodes ( config server replica set on visa1..3, mongos on visa1, shard…

jose
- 41
- 1
- 5
1
vote
1 answer
MongoDB Shard chunks already have an identically
We has a MongoDB Shard configured with 4 shards (A,B,C,D). Shard D was added after A,B,C. Some collections correctly balance with D but just one collection has some problem with migration.
On D logs show this message all time.
W SHARDING…

João Paulo Masiero
- 19
- 3
1
vote
0 answers
Mongodb: connection to replica set
First of all thank you that you look at my question.
I have installed MongoDB cluster:
mdb0.domain.com - Arbitr
mdb1.domain.com - Primary (priority 3)
mdb2.domain.com - Secondary (priority 2)
mdb3.domain.com - Secondary (priority 1)
with enabled…

Kostiantyn Shutenko
- 11
- 2
1
vote
0 answers
MongoDB: Ensure data is delivered and delivered only once
I have a theoretical problem with MongoDB:
I have an API that reads data from a MongoDB database. We have to make sure that each item in the collection is delivered eventually, but only once after it was inserted or changed. So the client needs the…

Tim
- 2,051
- 17
- 36
1
vote
1 answer
Mongodb cluster - importing billions of records
I am trying to import 10 billion records. Started tested with importing 1 billion records. Import time getting worst as the records gets inserted. Here are configurations and stats.
Mongo db version - 3.4
Documents - 1226592923
Routers(m4.xlarge) 2…

karthik kalletla
- 11
- 1
1
vote
2 answers
Express can't connect to mongodb replica set when new primary get elected
I have a mongodb replica set with the following config:
M1 primary
M2 secondary
M3 secondary
M4 arbitrator
Here is my Express code to connect to db (I use mongoose as the ODM):
const config = {
db:…

Justin
- 4,400
- 2
- 32
- 36
0
votes
1 answer
MongoDB cluster with SpringBoot WebFlux duplicates records
I use mongodb cluster with 3 replicas (1 primary and 2 slaves). Mongo version 5.0.4.
Also SpringBoot WebFlux application with reactive mongodb driver.
I often see duplications in database when I save documents using standard Spring Data…

Virkom
- 373
- 4
- 22
0
votes
0 answers
mongo cluster slow find query
we have a three nodes Mongo 3.6.11 cluster with a PSA replica set. we start syncing a newly attached node, syncing starts fast but after a while turned very slowly. during syncing this query is unexpectedly slow:
db.Cartable_Task.find(
{ $and:…

Mahdi
- 748
- 14
- 24
0
votes
1 answer
MongoSocketException or UnknownHostException - while connecting to MongoAtlas mongo cluster
I am trying to connect cluster in Mongo Atlas.
The access permission is already given to the cluster for all IP's in MongoDB Atlas.
The application I have is SpringBoot application.
Java-11
SpringBoot - 2.5.5
MongoDB 6+
The expcetion while making…

Atul
- 3,043
- 27
- 39
0
votes
1 answer
update config replication of mongodb sharded database access point mongos during run-time
I'm building a sharded MongoDB cluster, which I want to manage automatically. To achieve this I build the normal setup of a sharded db with:
3 replications of the config db
3 replications of shard "a" (initially only one but by growing the node…

Philipp M
- 502
- 6
- 20