In this article, I'll be showing you how to get Rails 4 running on Openshift Online with MongoDB as its database. Rails and MongoDB can make a pretty incredible combination and when configured correctly, can run a fast, reliable, and robust web application. Lets get started.
Before we do anything with Rails, we need to first setup our application on Openshift. We can accomplish this in one easy to run command using the rhc tool.
rhc app create ruby-1.9 -a rails4
Once that's finished, next we'll need to add the MongoDB cartridge to our application.
rhc cartridge add mongodb-2.4 -a rails4
You may have noticed that when we did the
rhc app create, it al...
We are proud to announce availability in the HongKong (HKG) datacenter. In February we added our London (LON) datacenter and now we are excited to serve customers in Asia. This is just the latest step in our march across the globe to bring the ObjectRocket MongoDB platform and expertise to more customers. This new location... Read more »
Although powerful, the Mongo shell does suffer from being a strictly console centric experience – multiple sessions require multiple terminals, results scroll away, repetitive commands or honing a function require command line history traversal and so on. That’s why the open source Robomongo is such a welcome addition to the MongoDB tools arsenal. It is…
MongoDB Management Service (MMS) tracks dozens of MongoDB-specific metrics. In this post, we’ll dive into a critical statistic — lock percentage.
In order to allow multiple clients to read and write at the same time, MongoDB employs a locking system. This lock system ensures that the clients reading and writing to the MongoDB database each have the same view of the data. It also prevents the clients from making conflicting modifications at the same time.
Prior to version 2.2, MongoDB employed a single reader/writer lock per mongod instance. Since MongoDB version 2.2, concurrency has improved and MongoDB also implements a more granular, database-level lock....