Cloud Foundry: Design and Architecture
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
The content has been bookmarked!
There was an error bookmarking this content! Please retry.
Posted by Abel Avram on Aug 11, 2010
MongoDB 1.6 is a major release addressing the scaling-out issue through sharding and adding replica sets for automatic failover and recovery.
The main improvement coming with MongoDB 1.6 is the ability to scale-out through sharding. MongoDB can automatically distribute databases, collections or objects in a collection over multiple shards without any downtime. Sharding collection is preferable because in many cases some data collections tend to be much larger than others, so it would be unprofitable to distribute the entire database.
A sharded configuration contains shards, routing processes and configurations servers, as shown in the following picture:
mongod – is the main database process, representing one shard and being organized in replica sets in order to provide automated failover. One of the mongod processes is the master in its replica set. If the master goes down, another server is delegated as master.
mongos – is a routing process, making the interaction of the client with the sharded database as connecting to a single server. There can be as many mongos servers as necessary, they having no shared state.
config servers – Each configuration server contain the cluster’s metadata, what shards exist in the system, and what chunks of data is on each shard. There are multiple configuration servers for protection. If one of them goes down, the configuration servers enter in read-only mode, but the shards continue to run in read/write mode.
Another major feature introduced in MongoDB 1.6 is Replica Sets, a replication feature based on the initial master/slave replication but adding automatic failover and recovery. There can be up to 7 servers in a cluster, and any node can be the primary node. All writes are directed to the primary node, from where they are replicated while reads can be performed on any node.
$or queries – The $or operator supports boolean or expressions in queries:
db.foo.find( { name : "bob" , $or : [ { a : 1 } , { b : 2 } ] } )
Windows Service – mongod runs on Windows as a service now, but not mongos.
w option – Writes can be blocked until the operation propagates to n servers in the set.
According to Dwight Merriman, CEO and co-founder of 10gen, the company providing support for the document database, MongoDB 1.6 is already used in production by bit.ly and foursquare. According to Merriman, bit.ly has about 50M users with 10K using the servers concurrently during peak times. Foursquare has millions of users and it migrated to sharded MongoDB from Postgres, using geospatial indexing.
The Release Notes and MongoDB Jira contain more information on what’s new in 1.6.
Derek Collison discusses the goals, the design premises and patterns employed in creating the architecture of Cloud Foundry, VMware’s open source PaaS, unveiling internal architectural details.
Andrew Watson talks about the work of the OMG, where CORBA is alive and well (hint: in your car), UML and UML Profiles vs. custom Modeling languages, DDS and other middleware, and much more.
Sohil Shah discusses creating iPhone and Android enterprise mobile applications based on cloud services using the open source platform OpenMobster.
Paul Sanford presents the transformations supported by data throughout its life cycle, and how that can be better done with Splunk, an engine for monitoring and analyzing machine-generated data.
A common “best practice” for unit tests is to only write a one assertion in each test. I intend to question this advice by showing that multiple assertions per test are both necessary and beneficial.
John Rauser presents the architectural and technological evolution of Amazon retail websites starting with 1994 and ending with adopting Amazon Web Services.
Michael Stal discusses system architecture quality, how to avoid architectural erosion, how to deal with refactoring, and design principles for architecture evolution.
Every developer has had to integrate with another system, API or component. Tis article provides strategies to handle the change and for he separating system boundaries.
No comments
Watch Thread Reply