Questions tagged [mongodb-cluster]

43 questions
0
votes
0 answers

mongosync fails while synchronising data between source and destination sharded cluster

I am trying to synchronize data from source cluster to the destination cluster using mongosync however hitting the below error. {"level":"fatal","serverID":"891fbc43","mongosyncID":"myShard_0","error":"(InvalidOptions) The 'clusteredIndex' option is…
maximus
  • 1
  • 1
0
votes
1 answer

Recover MongoDB data from inaccessible replica set

I had previously created a 3-node docker cluster of MongoDB with port 27017 mapped to that of respective hosts. I had then created a replica set rs0 with it's members being host1.mydomain.com:27017, host2.mydomain.com:27017 and…
abhinavkulkarni
  • 2,284
  • 4
  • 36
  • 54
0
votes
1 answer

error while connecting to database TypeError: Invalid URL in Mongo DB

When I am trying to connect mongo db cluster with my application it is showing this error I am using URL for Node.js driver of version 2.2.12 or higher Here is the code of my db.js file import mongoose from 'mongoose'; //mongoose library is used…
0
votes
1 answer

Replicasets are not creating in mongodb community operator

I am creating mongodb cluster using following documentation. https://github.com/mongodb/mongodb-kubernetes-operator/blob/master/docs/deploy-configure.md I am trying to create custom resources as following. kubectl apply -f…
0
votes
0 answers

How to run docker(s) with mogodb cluster?

I use this docker-compose which runs MongoDB+ mongo-express Web interface: https://gist.github.com/adamelliotfields/cd49f056deab05250876286d7657dc4b How can I run docker(s) with mongodb cluster and mongo-express as web interface? A have attached my…
ZedZip
  • 5,794
  • 15
  • 66
  • 119
0
votes
0 answers

Regional server read from nearby MongoDB cluster node and write to remote MongoDB master

We plan to set up a global MongoDB cluster across 2 different data centers. The MongoDB master will be inside the AWS China data center and there will be a read-only node in AWS Singapore. How do we specify our Singapore server to read from the…
angelokh
  • 9,426
  • 9
  • 69
  • 139
0
votes
3 answers

MongoDB Sharding and Replication

I've already setup MongoDB sharding and now I need to setup replication for availability. How do I do this? I've currently got this: 2 mongos instances running in different datacenters 2 mongod config servers running in different datacenters 2…
olli
  • 73
  • 5
0
votes
1 answer

Primary election isn't done after primary is killed on a MongoDB Cluster

I try to test fail over scenario of a mongoDB cluster. When I stopped the primary, I don't see any new primary election on my Java code's logs, and read/write operations are ignore and getting following: No server chosen by…
Baris
  • 471
  • 6
  • 19
0
votes
2 answers

Handling Users with MongoDB Stitch App within Atlas Cluster

I have an MongoDB Stitch app, that users the Email/Password authentication. This creates users within the Stitch App that I can authenticate on the page. I also have an MongoDB Atlas Cluster for my database. In the cluster I have a DB with the name…
0
votes
1 answer

MongoDB is showing too many connections open

I was looking at the MongoDB logs and it was showing something like: [LogicalSessionCacheRefresh] Successfully connected to mongo1 (13795 connections now open to mongo1 with a 0 second timeout) This is a connection made by a secondary node in a…
0
votes
1 answer

Mongodb and node Getting error while connecting with cluster?

I am trying to connect with mongoldb cluster with my node application. I am having mongodb version 3.1.0. I copied the connection string from mongodb which looks like…
svk
  • 4,513
  • 18
  • 63
  • 100
0
votes
0 answers

How to find number of shards in sharded MongoDB cluster programatically

I know sh.status() command can give me shards information. However I cannot figure out, how to run this programatically using mongo java driver.
virendra chaudhary
  • 179
  • 1
  • 2
  • 18
0
votes
0 answers

Query failed with error code 59 and error message 'command not found' on MongoDB Cluster

I have a MongoDB cluster running MongoDB 3.4.14 in MongoDB Atlas. My application is successfully connected with this cluster and can read and write. I can connect with the shell to this cluster also. When I try to connect with Studio3t (Version…
jrenk
  • 1,387
  • 3
  • 24
  • 46
1 2
3