Questions tagged [mongodb]

MongoDB is a document oriented database (also known as NoSQL database).

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

898 questions
22
votes
4 answers

How to reset MongoDB replica set settings

I want to start over the configurations of replica, is it possible? How to reset it? In group people saying to remove the database content, but are there any work around?
Ryan
  • 6,021
16
votes
2 answers

Does a MongoDB replica set require at least 2 or 3 members?

Documentation here says three: http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ "A replica set requires three distinct systems..." Whereas the documentation here says two: http://docs.mongodb.org/manual/core/replication/ "Most replica…
cat pants
  • 2,293
12
votes
2 answers

Multiple Mongos on one server

I'm not talking about sharding. We had a testing server (linux) and there is already one mongo which belongs to another project/subteam. Is it possible to run multiple, isolated instances of mongodb on one machine? How can I do it?
11
votes
2 answers

How can I connect to a MongoDB Replica Set behind a proxy?

I have a MongoDB Replica Set on the cloud service. For security reason, the replica set is available to the cloud's internal network. I followed that cloud service's guide and setup a proxy to each member of the replica set, on the…
10
votes
1 answer

Easiest way to restart MongoDB

What's the easiest and safest(low data loss, no file locking issues) way to restart mongodb on a production system?
mixdev
  • 383
  • 2
  • 3
  • 10
8
votes
2 answers

SocketException in Mongo logs

We are running mongo for 4 months so far , But lately I am seeing a lot of SocketException handling request, closing client connection: 9001 socket exception [2] server [127.0.0.1:58996] How can I know the cause of this error ? Is it related to…
7
votes
1 answer

Does MongoDB need to be restarted to reload a CRL?

I'm running a MongoDB replica set with TLS/SSL. I'm also using a CRL to block revoked certificates for clients. Relevant configuration of a replica set member follows. net: ssl: mode: requireSSL PEMKeyFile: /opt/member.pem …
7
votes
5 answers

NoSQL databases for PHI?

Are the fast, document-based NoSQL solutions--MongoDB, Cassandra, CouchDB, etc--appropriate for PHI data? They have performance advantages compared to RDBMS for sure, but in general appears less mature. I started designing a system based on…
Ming K
  • 173
  • 5
6
votes
1 answer

High CPU usage on mongodb server when idle?

I'm getting strange usage numbers on MongoDB server when it is in almost idle state: http://pastebin.com/cKVyGMts (no queries) DB size is about 3.3 Gb. I can see in mongodb.log that snapshotthread is eating too much CPU: Wed Nov 28 19:02:14…
5
votes
2 answers

Should I disable turn off MongoDB profiler in production machine?

The default according to [1] is collect profile data when execution time > 100ms But one of the issue is when majority of queries' execution time > 100ms, our system start to overload and I am not sure if the profiler make our system even more…
Ryan
  • 6,021
5
votes
1 answer

MongoDB Socket Exceptions when moving chunks

I have 2 shards in my mongodb db cluster, with 1 mongos server. I have a total of 8 servers, with one replica set having 5 and the other 3. I have a single collection that is sharded across the cluster, but recently when I attempt a chunk move I…
Bryan
  • 245
4
votes
1 answer

How to get MongoDB server local time?

I'm running a mongodb with authentication. I would like a non-root client to get server time. I thought easiest would be to use serverStatus. But default readWrite user does not have such privilege. I'm really lost in mongo security model. I tried…
akostadinov
  • 1,197
4
votes
2 answers

Mongodb sharding - Init script for mongos process?

I've been running mongodb as a replica set, and have recently attempted to move to a sharded cluster. One thing I'm a little unsure about is how I should be starting the mongos process. Previously I had used the 10gen rpms when installing mongodb,…
UpTheCreek
  • 1,638
4
votes
3 answers

mongoid connection issue

I've been trying to use Mongoid with Rails on Ubuntu. Mongodb was working fine for me with rails app 3.0 to 3.2. Today suddenly, I am getting an error: /home/pravinmishra/.rvm/gems/ruby-1.9.2-p318/gems/mongo-1.5.2/lib/mongo/connection.rb:413:in…
4
votes
2 answers

MongoDB secondaries not catching up

I have a replica set that I am trying to upgrade the primary to one with more memory and upgraded disk space. So I raided a couple disks together on the new primary, rsync'd the data from a secondary and added it to the replica set. After checking…
Bryan
  • 245
1
2 3
9 10