New answers tagged

1

The MongoDB server actually does not search any locations for config files, and there is (as at MongoDB 3.2) no way to specify multiple config files or include config file fragments. There was a feature suggestion for includes discussed (see: SERVER-14911 in the MongoDB issue tracker), but it was decided that includes are not part of standard YAML and ...


1

I happen to work for an IoT\M2M company and we have been using SQL Server just fine for years... Much of the architecture is all event\transaction driven and process based on an \time\event\status and have denormalized the data for multi-purpose uses. Now, ideally when you experience the type of growth that we have over the last few years with millions of ...


0

How to install on Ubuntu is handled extremely well in the MongoDB Docs so I won't rehash that here (plus it is updated more frequently than this answer will be). Once you have installed MongoDB using that guide you can then modify the config file at /etc/mongod.conf to reflect your desired config (auth etc.). Finally, you then start/stop the database ...


0

I don't think so. But you can try mongo-connector to connect to multiple instances and collect and auto populate the data accordingly.


0

You can look into tailing the oplogs of the shards yourself, thereby sending the data to a cluster in a remote data center incrementally. Similarly you can look into tools like mongoriver from Stripe or mongo-connector from MongoDB labs if you don't want to do all the work yourself from scratch (but then are relying on a third party keeping that tool up to ...


3

You feel like they should be separated because that makes perfect sense in the relational world. But as you said in the NoSql world and in MongoDB in particular, you want to group like-items together. I've not done extensive research on Mongo, but have spent some time with the online classes and I believe the answer is to store them together. You probably ...


1

I won't tell you what are the differences as there are too many. I would recommend to go with SQL databases unless NoSQL tightly fits to your use case. SQL has much more standardized interface and is much easier to integrate and query. The most easiest to deal with and very performant database from R is sqlite. Package RSQLite ships sqlite libraries so ...


3

Strictly speaking, _id fields are as unique as you make them. As you have discovered, the default values for _id are ObjectIDs but you can populate the field with any data you wish. Therefore, for example, you could use a UUID as I have done in this sharding example and then the chances of a collision across collections would essentially be whatever the ...


0

In your scenario there is a good discussion on this already on the Mongo Jira server on unsharding a database: https://jira.mongodb.org/browse/SERVER-9845 Test and stage these steps using your real data in a non prod environment repeatedly until you are confident and find one that works: database = 'test' collection = database + '.fs.chunks' ...


1

Unless you are actively archiving those LVM snapshots and copying them off the servers, having two live nodes doing snapshotting is not overkill. The alternative would be having a single node that would hold all of your snapshots, meaning you would not be able to restore to a previous state if anything happened to that machine. One important thing to ...


1

You need to use sudo service to start MongoDB as a service, check the documentation for further details: sudo service mongod --auth --port 27017 --dbpath /var/lib/mongodb


2

The config servers only hold metadata about which chunk is stored on which cluster, no actual data. There is no such thing called a "master server" in mongoDB, but I think what you are talking about is the shard router (mongos). When that is the case, then that server doesn't store any data at all. So the total capacity of the cluster is the sum of the ...


3

I found one way to do it. On config server: > db.serverCmdLineOpts().parsed.sharding.clusterRole configsvr On shard server: > db.serverCmdLineOpts().parsed.sharding.clusterRole shardsvr Have to be careful as db.serverCmdLineOpts().parsed.sharding.clusterRole is not always defined.


1

The real answer is it depends, but most of the time this probably isn't a good idea. SELECT while it is less nefarious than other the other CRUD commands still carries risk. Why this is probably a bad plan Most applications with databases have some concept of an authenticated user vs a non-authenticated user. If I have unrestricted SELECT only access to ...


0

Not sure this is what you are looking for, but I think that the major players in the RDBMS field will add support for JSON the same way they added support for XML a couple of years ago. You can for example have a look at: http://www.ibm.com/developerworks/data/library/techarticle/dm-1306nosqlforjson1/ Another approach is to add some kind of product that ...


0

The GeoJSON spec doesn't support multidimensional coordinate positions in the format you are suggesting: A position is represented by an array of numbers. There must be at least two elements, and may be more. The order of elements must follow x, y, z order (easting, northing, altitude for coordinates in a projected coordinate reference system, or ...


0

You can read more about Apache Phonix https://phoenix.apache.org/ which is Relational DB over HBase (NoSQL) Regards



Top 50 recent answers are included