Tag Info

Hot answers tagged

1

MongoDB (as at 3.0) only supports a single primary per replica set. Replica sets can have up to 50 members, with up to 7 voting members. The 2-node replica sets you have described should have a third member (either a data-bearing secondary node or a voting-only arbiter) to allow for failover. Replica sets require a strict majority of votes (n/2+1) in order ...


1

For mongo shell sessions there is a concept of mongorc files which include JavaScript to execute when the mongo shell starts. You can use this feature to extend or customise the behaviour of the interactive shell. If you want secondary reads to be allowed by default for all shell sessions you can either: add the rs.slaveOk() command to the .mongorc.js in ...


1

* User - user_id auto integer - regtime datetime - username varchar - useremail varchar - userpass varchar * Question - question_id auto integer - question varchar - is_active enum(0,1) * Question_choices - choice_id auto integer - question_id integer - is_right_choice enum(0,1) - choice ...


1

Reason: Is it the same version of Mongo on both servers? Record Padding : http://docs.mongodb.org/v2.4/core/record-padding/ No Padding Allocation Strategy Changed in version 3.0.0. For collections whose workloads do not change the document sizes, such as workloads that consist of insert-only operations or update operations that do not increase document ...


1

Use 'mongostat' to monitor the amount of inserts Use 'iostat -x 1' to see how much of the disk limitation is used. 'top'/'htop' to see cpy/ram limitations. 'nethogs' for network limits. If the disk limit isn't reached : Let your python script run from different locations (servers) at the same time, and see if you can increase the amount of inserts. The ...


1

I wasn't able to use wiredTiger upgrading MongoDB. However, at May 17 I uninstalled MongoDB 2.6 then installed MongoDB 3.0.3 . Immediate after the installation, I added storageEngine=wiredTiger on top of my mongod.conf file. Then I gave sudo service mongod start command and eventually I could.


1

You can combine it on 1 disk, if you wish. Not obligated to split. Journal Journal will take 3GB (or less than 400MB if you use --small-files option) Journal + Pre-Allocation Be aware. If you don't use --small-files, then at least 8GB (journal and oplog included) will be pre-allocated to your disk. This is not lost space, but just reserved to improve the ...


1

To see if the hardware is not limiting: top/htop => cpu percentage iostat -x 1 => sysstat tool to see disk r/w limits (%util) Concerning locking: Mongo 2.6 : database locking Mongo 3.0 + MMAPv1 storage engine : collection locking Mongo 3.0 + WiredTiger storage engine : document locking If you have 1 huge collection (server-prod), maybe Sharding is an ...


1

The array contains 348 empty documents to begin with, and over the course of a week these array element will have sub-documents inserted (if empty) and then subsequently updated (if they already exist). The sub-documents are approximately 100 bytes in size and are not indexed. One consideration with this use case is that your documents are consistently ...


1

You can use SolrMongoImporter Download solr-mongo-importer jar file Download mongo-java-driver jar file Place both jar's files in your Solr libraries folder Include the libraries in your solrconfig.xml Example of usage: <lib path="../../dist/solr-mongo-importer.jar" /> <lib path="../../dist/mongo.jar" /> <?xml version="1.0" ...



Only top voted, non community-wiki answers of a minimum length are eligible