Questions tagged [mongodb]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
493 views

Mongos connecting to replica set

This is a pretty basic question but I can't find any answers on it. I know you use mongos to interface with a sharded collection. However, if I have a replica set which is not sharded how do I set up ...
Mediocre Gopher's user avatar
16 votes
2 answers
15k views

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....
cat pants's user avatar
  • 2,283
1 vote
1 answer
1k views

MongoDB ReplicaSet slow read performance

I successfully basic configure my replica set, but i noticed slow read performance. I have 2 mongo servers and 1 arbiter in my replica set. All are running on Centos 6.3 minimal setup (just database)....
Novkovski Stevo Bato's user avatar
6 votes
1 answer
17k views

mongoexport csv output array values

I'm using mongoexport to export some collections into CSV files, however when I try to target fields which are members of an array I cannot get it to export correctly. command I'm using: ...
9point6's user avatar
  • 175
0 votes
1 answer
573 views

mongodb segmentation fault(11) macosx

I have problem, i cant figure out, how to fix.. So i am on MacOSX machine, running php 5.3.15 version, using mongo 1.3.1 version. When i try to execute php script, in which i try to connect to remote ...
Wish's user avatar
  • 101
4 votes
1 answer
2k views

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 ...
martinseener's user avatar
1 vote
3 answers
346 views

Amazon EC2 High-Memory Extra Large Instance [closed]

I am new to Mongodb and EC2. If I use following single MongoDb server : High-Memory Extra Large Instance 17.1 GiB memory, 6.5 ECU (2 virtual cores with 3.25 EC2 Compute Units each), 420 GB of local ...
Simpanoz's user avatar
  • 121
1 vote
1 answer
1k views

Is it possible to run multiple mongod instances on a single set of database files

We have large multi-gigabyte data sets on which we run very complex queries, for example { $or: [ { id: 30000001, ... }, { id: 30000005, ... }, ..., { id: 30001005, ... } ] } It seems that CPU is ...
9point6's user avatar
  • 175
1 vote
1 answer
3k views

Setting up mongodb via upstart - how to pass options?

I installed MongoDB in an Ubuntu Server VM inside VMware using these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Everything works fine, and I can access MongoDB ...
Jonathan Ong's user avatar
1 vote
1 answer
2k views

MongoDB Replica Set, initiate() need to login error

I am trying to setup a replica set, but when I issue: rs.initiate() On the first server, I get the following error: { "errmsg" : "need to login", "ok" : 0 } That is strange though, because in my ...
Justin's user avatar
  • 5,438
1 vote
2 answers
1k views

Low priority batch processes on live Mongo database

We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% ...
moinudin's user avatar
  • 205
0 votes
1 answer
2k views

How do I upgrade mongodb 1.8 to 2.2 on ubuntu?

Following this guide: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ I ended up with mongodb 18 on my Ubuntu 10.04. I've just read the 2.2 mongodb release notes on upgrading and ...
Alex Waters's user avatar
6 votes
1 answer
9k views

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 ...
Andrei Mikhaltsov's user avatar
1 vote
1 answer
76 views

Is this normal or due to bug in mongodb?

I am new to mongodb and i installed it on xen para virtual vm and when given command "mongo" terminal freezed and on the top output command mongo is taking almost 100% CPU. Is this a bug,or does ...
Kevin Parker's user avatar
-2 votes
1 answer
2k views

MongoDB Crashed,Not able to start it again [closed]

Mongodb fail to start after showing this error...and not able to start it again..?Can u help me find out? *** glibc detected *** /usr/lib/mongodb/mongo: corrupted double-linked list: ...
Kevin Parker's user avatar
5 votes
1 answer
6k views

Multiple MongoDB instances on same server

We set up a MongoDB development server on CentOS 6.3 and were able to separate different projects by using separate config files and rc scripts. Now we're looking at setting up a MongoDB production ...
Banjer's user avatar
  • 4,024
1 vote
1 answer
55 views

Understanding mongod log entries

Can anyone explain the numbers in the % column, in this mongod log snippet ? It is building a new index but I'm not sure I understand why the numbers look like that Tue Nov 20 11:38:08 [...
Jo Erlang's user avatar
  • 143
1 vote
1 answer
514 views

How to install 64bit version of Mongodb

How can I install the 64bit (x86_64) version of MongoDB? I've specified in the 10gen.repo the 64bit: baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 But when I run: yum install ...
slownage's user avatar
1 vote
1 answer
2k views

How to set Mongodb

I'm trying to set up Mongodb on my vps but when trying to start it: service mongod start It returns this error: Starting mongod: /usr/bin/mongod: error while loading shared libraries: libstdc++.so....
slownage's user avatar
0 votes
3 answers
1k views

Is it possible to upgrade Ubuntu 10.04 32bit to 64bit with out reinstall OS?

My VPS server is running Ubuntu 10.04 32bit now, but I have to upgrade my OS to 64bit because of the 32-bit limitation of mongoDB. But if i reinstall the system, there are a lot of programs need to ...
user805627's user avatar
3 votes
1 answer
1k views

Rails/Mongo across multiple different geo-regions

I have a system that by necessity requires physical presence in three or more different locations and I need advice on structuring in such a way that my database stays replicated in a timely manner ...
wmarbut's user avatar
  • 301
3 votes
2 answers
2k views

Is rest=true a must for MongoDB's replicaSet setup?

I see there are a lot of tutoirl on the internet suggest to add the rest parameter mongod --rest --replSet myset Are there any side effect if I don't use them?
Howard's user avatar
  • 2,175
1 vote
2 answers
759 views

Mongo Scripting the shell

On my production stack, I have a front-end server and a Mongo server. I would like to be able to set a cron job on the front-end server to create some logs daily. I wrote a script that does this: ./...
cKendrick's user avatar
2 votes
1 answer
937 views

Mongodb Slave replication lag

We using standard mongo setup: 2 replicas + 1 arbiter. Both replica servers use same AWS m1.medium with RAID10 EBS. We experiencing constantly growing replication lag on secondary replica. I tried ...
Leonid Bugaev's user avatar
2 votes
1 answer
306 views

MongoDB PHP EC2 Setup Configuration

I am new to web development and server set up. I am looking for some advice or a link to a tutorial on setting up a production system up. Right now, I have a server (Ubuntu, Apache, MongoDB, and PHP)...
w3rthl3ss's user avatar
  • 135
3 votes
3 answers
329 views

Drop in solution for logging to DB

I'm considering setting up our servers to log to a Mongo Database rather than log files. Logs will then be all on one server, queryable, and overall easier to manage. I'd love to find a solution that ...
Jake's user avatar
  • 631
2 votes
1 answer
5k views

How to upgrade a single instance's size without downtime

I'm afraid there may not be a way to do this since we're not load balancing, but I'd like to know if there is any way to upgrade an EC2 EBS backed instance to a larger size without downtime. First of ...
Justin Meltzer's user avatar
0 votes
3 answers
220 views

How to choose NoSQL database engine?

We have a database with following specs: 30k records, 7mb in size 20 inserts/second 1000 updates/second 1000 range selects/second, by secondary index, approx 10 rows each needs at least one secondary ...
Poma's user avatar
  • 1,309
14 votes
1 answer
16k views

Is it possible to recover MongoDB databases from .ns and .0, .1, . ... files?

I have a MongoDB 2.0.4 installation on Ubuntu 12.10. Recently I had some problems connecting to the database from the outside, and figured out there was something which prevented MongoDB from starting ...
tunnuz's user avatar
  • 427
4 votes
2 answers
2k views

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. ...
sebut's user avatar
  • 53
2 votes
1 answer
619 views

Error while compiling PHP extension

I'm trying to install a php extension that is written in c and make use of MongoDB c driver. I have been trying for the last 2 days to compile and install the extension, however, I'm getting the same ...
user avatar
3 votes
1 answer
2k views

How do I network this Windows Failover Cluster and MongoDB Replica Set? (diagram inside)

As you can see, my two Windows Server Failover Cluster (WSFC) nodes have three network interfaces each, which connects them to three different networks : A public network A private network ...
arex1337's user avatar
  • 435
2 votes
3 answers
678 views

Varnish Cache logging to MongoDB

I want to stream Varnish's log into MongoDB for realtime reporting. Can this be configured directly within Varnish or can the official Varnish-Agent (https://github.com/varnish/varnish-agent) be used ...
Justin Hourigan's user avatar
0 votes
1 answer
910 views

replica set with multiple primary nodes

I am trying to configure a replica set with three nodes: node A, B and C. I execute the rs.add()'s from node A and after that rs.status() shows that the three nodes are PRIMARY. Moreover node B and C ...
miguel's user avatar
  • 111
2 votes
1 answer
3k views

Using mongodump with an auth enabled mongodb server

I'm trying to do a daily backup of my mongodb server (auth enabled) using the mongodump tool. mongodump provides two parameters to set the credentials: -u [ --username ] arg username -p [ --...
bb-generation's user avatar
8 votes
2 answers
33k views

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 ...
Dina Abu-khader's user avatar
2 votes
1 answer
2k views

non-mapped virtual memory & total number of connections

We have two MongoDB data nodes (replica set) - Primary & Secondary. I noticed that the non-mapped virtual memory is relatively high and wondering if they are hurting our MongoDB performance (The ...
tszming's user avatar
  • 23
2 votes
1 answer
896 views

Thread-Safe or Non-Thread-Safe PHP Extension for Windows? [closed]

I am wanting to install the MongoDB PHP extension for Windows for my Dev server to play around with it. Looking at the PHP manual https://www.php.net/manual/en/mongo.installation.php#mongo....
JasonDavis's user avatar
  • 2,658
11 votes
1 answer
9k views

How to get the MongoDB' current working set size

From the doc , it said "For best performance, the majority of your active set should fit in RAM." So for example, my db.stats() give me { "db" : "mydb", "collections" : 16, "objects" : 21452, "...
Howard's user avatar
  • 2,175
2 votes
1 answer
357 views

Disk / system configuration for log collection / syslog server

I am looking into building a syslog / logging infrastructure and am pondering about some architecture best practices. Essentially, I see that a syslog system needs to support two conflicting workloads:...
Konrads's user avatar
  • 880
0 votes
1 answer
344 views

Large, high performance object or key/value store for HTTP serving on Linux

I have a service that serves images to end users at a very high rate using plain HTTP. The images vary between 4 and 64kbytes, and there are 1.300.000.000 of them in total. The dataset is about 30TiB ...
Tommy's user avatar
  • 331
22 votes
4 answers
114k views

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's user avatar
  • 6,011
2 votes
2 answers
362 views

Cross-cloud deployment: Servers on azure - Mongodb at MongoHQ (AWS) - known pitfalls?

Looking to deploy an existing Mongodb-backed solution to the cloud for a client. I'm hoping to combine MongoHQ and Azure to use the simplest possible Mongodb deployment together with the simplest ...
Erik I's user avatar
  • 503
4 votes
2 answers
6k views

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-...
user avatar
1 vote
1 answer
348 views

enkive mail archive ldap setup

I am trying to set up mail archiving using enkive with exchange. i have followed the installation of all the prerequisites for enkive. i run enkive with defaults and i get error in the log file Aug ...
shorif2000's user avatar
2 votes
1 answer
1k views

MongoDB: Random Vs Sequential Read Performance

I have a single-instance mongodb with a collection with 3 fields: _id, block_id, payload. Payloads are always 4096 byte binaries _id is an ever-incremented unique integer There is a secondary ...
user131411's user avatar
2 votes
2 answers
705 views

Unsure of how to setup two Virtual Machines on Windows Azure to match my desired architecture

I'm in the process of trying to setup a couple Win2008 Server Virtual Machines on Windows Azure (using the VM Preview feature) and I'm not sure how to get my desired "architecture" setup properly. ...
Jason L.'s user avatar
  • 123
2 votes
1 answer
1k views

diagnosing mongodb major faulting and erratic behavior

We have a mongodb instance running on an amazon ec2 large (7.5GB) ubuntu instance (same machine that our node.js server is running from). Traffic has increased a LOT recently and we are starting to ...
Hersheezy's user avatar
  • 356
2 votes
5 answers
16k views

Fast Database to store 1 Billion records [closed]

I am writing a code to store data and want to store 1 Billion to 10 Billion records or even more. Most importantto this is speed (nearly 10000 - 20000 / records per second), SPACE usage and CRASH ...
Raheel's user avatar
  • 29
-3 votes
2 answers
874 views

I have a mongod process but i did not install mongodb, what could this be? [closed]

when I do a top I could see mongod in the top consumers: But I do not have mongodb installed: How do I remove mongod? I know I could easily do a kill 571 but it's not neat. Could this be a virus or ...
Jürgen Paul's user avatar
  • 1,275