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.

889 questions
4
votes
2 answers

How to change the master in a MongoDB cluster without restarting the process?

Reading the documentation of MongoDB about how to configure a master-slave configuration of a cluster (our cluster will have more than 12 nodes, so unfortunately we can't have a replica-set configuration), how can I promote a slave to master without…
Kico Lobo
  • 145
  • 2
  • 6
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,628
  • 10
  • 32
  • 48
4
votes
1 answer

mongo and app server cpu

The beginning: We are using uwsgi and I decided to switch our configuration to use more workers/processes. Why: We have been seeing a traffic increase lately and in my tests with apache benchmark, the new configuration with more workers and…
tonyl7126
  • 213
  • 2
  • 6
4
votes
1 answer

MongoDB Replica-Set with Replication Lag on one node only

we experience a strange behaviour in our MongoDB Replica-Set, setup of 3 Nodes (all Xeon Quad-Core-Class CPUs, 16GB of RAM for one, 24GB for the other two nodes) The one node with less RAM is normal secondary with priority 0, other two priority 1.…
martinseener
  • 149
  • 11
4
votes
2 answers

what is best multi-server configuration with OpenVPN

We have a number of Database severs running MongoDB on Debian plus a number of Application servers also on Debian. The db servers hold replicating db clusters, so they need to talk to each other. Application servers need to talk to all db servers…
sebut
  • 53
  • 4
4
votes
2 answers

nginx reverse proxy to mongodb rest interface

I'm trying to set up a reverse proxy with HTTP auth that proxies MongoDB's REST interface. So far, I've got this: server { listen 80; server_name tld.example.com; charset utf-8; access_log…
user66336
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…
Pravin Mishra
  • 43
  • 1
  • 6
4
votes
2 answers

Mongodb ubdate on Ubuntu 10.04 LTS

I installed MongoDB on live VPS to write logs. The server is running on Ubuntu 10.04 LTS and Mongodb version is 2.0.3. I want to upgrade to latest version (2.0.5) but I want to upgrade only MongoDB. I made test on my desktop with apt-get upgrade and…
4
votes
2 answers

MongoDB best practice against constant power failure

Background: I have some AIO application machines, (running ubuntu with rails + mongodb + chromium) in one machine on a mobile coach for displaying information, occasionally user might change chuck in some data into mongodb. Now, the power supply…
c2h2
  • 768
  • 2
  • 9
  • 20
4
votes
1 answer

Securing MONGO with TLS (and mutual TLS)

Following instructions outlined in MongoDB SSL encryption and Spring's Driver, I got 2.1.0 and after building it, it says it doesn't recognize sslOnNormalPorts, sslPEMKeyFile or sslPEMKeyPassword. But I saw a --keyFile, and used it (I had to strip…
4
votes
2 answers

Mongo database replicas on the same machines as load balanced webservers?

We're testing deployment of a web app on Amazon's EC2 which uses MongoDB for the database. Mongo recommends using at least 3 nodes for replication for data integrity. Although this is testing, we'd like to test with replication to see how the system…
user32381
  • 207
  • 3
  • 8
4
votes
1 answer

MongoDB SSL encryption and Spring's Driver

There is very limited information regarding MongoDB and SSL encryption for the transport between replica sets and drivers (java clients). Anyone have any experience setting this up? Looking to have traffic (queries and replica information) between…
Nick Huanca
  • 41
  • 1
  • 3
4
votes
1 answer

Shutting down MongoDB with a command line command, is it possible?

Can I shutdown mongoDB with a command line command? I use MacOSX but it may be similar as in linux. If not, does someone know how I can make a script that would enter the mongo shell and shut the server down?
Petruza
  • 285
  • 3
  • 9
4
votes
0 answers

Ignoring maturity, which database would be better for storing spatial data?

I am looking to store possibly millions of spatial locations. I will need to do queries like "hotels within 10 miles of [lat,lng]". I've had a little experience with MongoDB in this regard and was actually impressed at how easy it was. However,…
cbmeeks
  • 243
  • 1
  • 4
  • 11
4
votes
1 answer

Running mongos as a reliable service on Windows Server 2008R2 (64-bit)

Can anyone provide any information on running mongos as a reliable service on a Windows Server 2008R2 (64-bit) Web server? 10Gen suggests using the Windows Server 2003 Resource Kit Tools, but they are outdated and mongos is still not directly…
Robert
  • 41
  • 1