Alibabacloud.com offers a wide variety of articles about mongodb reference architecture, easily find your mongodb reference architecture information here online.
Label:Transferred from:http://blog.dufei.cc/index.php/archives/25/ NoSQL has recently become a hot Topic (published by the authors in 2012, saying that for now, NoSQL is in full swing). The demand for highly scalable and semi-structured data in large-scale architecture Web services development drives the database toward NoSQL. There have been a number of NoSQL database solutions in recent years. I have been in the past blog (not my blog, author blog
MongoDB (IV)-management architecture and mongodb Management Architecture
We have introduced the basics of MongoDB. We recommend two websites here. You can check them and explain them in detail #. Let's take a look at MongoDB's data management and
Label:When it comes to MongoDB's architecture, it is inevitable to compare it with relational databases. Here we take MySQL for example, we make some comparisons:From the logical structure of the comparison:
MySQL Hierarchy concept
MongoDB Hierarchy Concept
Databases (database)
Databases (database)
Tables (table)
Collection (collection)
called block, Chunk), when we divide a block interval into two, a block becomes two blocks. If you add a new Shard, MongoDB can fetch 100G data from the top of each shard and move the blocks onto the new Shard, so that the new shard gets 400G of data that needs to be moved to minimize the amount of data, only 400G. As shown in the following:Description: When adding shards in the above diagram, each shard can provide data directly to it. This is the w
All content involving internal structures is abstract, but the structure of things often determines the nature of things. If you want to know mongodb in a more fundamental way, take it easy!
Let's talk nonsense and step into the topic:
MongoDB is a portable database that can be used on every popular platform, the so-called cross-platform feature.
A running MongoDB
1. How to create a blockIn the previous understanding of the basic concepts of blocks in the MongoDB shard architecture, here's how to create blocks? When you decide to assign data, you must select a key for the block interval (we've been using username for the first time) This key is called the Slice key (Shard key), The slice key can be a combination of any field or field, as in the following document:If
migration actually happening, On the other hand the fact is that if it does not seem to be slow to make people irritable can not work very well, for this contradiction, MongoDB needs to implement two techniques, so that the Shard more understanding, but also not the production of hope to cause the impact of fragmentation.
Custom Block Size
The first time you start MONGOs, you can declare the--chunksize n parameter, where n is the block
, At this point the Arbiter service requires a key file to validate the replica set schema. Communication (communication)In a replica set schema that is deployed with arbiter (arbitrators), only arbiter and other members of the communication, such as election polling, heartbeat, and configuration data are not encrypted in this data. Note: Of course, if your MONGODB uses SSL deployment, MONGODB will encrypt
is migrated successfully, all configuration servers must be in the same order, and if any of them is down, all the migrations that are currently in progress will be rolled back and stopped until the entire configuration server is running, and any one configuration server is down and the cluster configuration cannot be changed.3, the structure of the clusterA MongoDB cluster is basically composed of 3 types of processes, that is, the shards that actua
The following are some guiding questions for MongoDB's internal mechanism:
Replica set failover, how is the master node elected? The ability to manually interfere with a single master node.
The official says the number of replicas is best to be odd, why?
How is the MongoDB replica set synchronized? What happens if the synchronization is not timely? Will there be inconsistencies?
Will mongodb
search key
Many applications access new data more frequently than old data, so we want the data to be roughly sorted by time, but also evenly distributed, so that we can keep the data we are reading and writing in memory and distribute the load evenly across the cluster. For example, there is an analysis program that allows users to access data over the past one months on a regular basis, and we want to keep the data as easy to use as possible, so we can shard on {month:1,user:1}, where mo
, such as secondary without the right to vote and priority set to 0.
Of course you can add a arbiter (arbiter) in a replica set schema, arbiter cannot hold a copy of the data, and the arbiter plays a controlling role in the replica set architecture, when replica The primary is not available in set, and it is necessary to re-elect other members as new primary. A replica set can have up to 12 members, and only 7 members can be voted on at the same
Review
There is no doubt that mobile internet, social networking, large data and cloud computing have become the four major trends in IT development. Cloud computing also provides an ideal platform for the top three. Today, not only internet companies, many of the traditional industries of large and medium-sized enterprises are also building their own private cloud. This article is intended to introduce a reference
Tags: href operation user Activity ack personalization benefits ble spaceAbsrtact: The REDIS+MYSQL+MONGODB technology architecture enables big data storage and real-time cloud computing in this project. Using the horizontal dynamic addition of mongodb slices, it can guarantee the query speed and cloud computing efficiency after the expansion without interrupting
: Cobar and other middleware +mysql technology picture slightly. also, share some of the main MySQL high-availability architectures 1. mysql Dual master + keepalived automatic switching scheme (above) 2, MySQL master-slave + keepalived master-slave automatic switching scheme (above already) 3, Mmm+mysql dual Master + multi from high-availability program (above already) 4, MySQL + pecemaker (Heartbeat) + DRBD High Availability 5, MySQL + RHCS high-availability program 6. MySQL + cluser cluster
A Reference Architecture (SOA) is a framework that enables each project to have a compliance basis to promote consistency, best practices, and standardization. The reference architecture is not limited by the current IT status, but should be targeted at a well-thought-out vision. IT can be said that IT guides all futur
From: http://newhappy2008.blog.sohu.com/117231212.html
A Reference Architecture (SOA) is a framework that enables each project to have a compliance basis to promote consistency, best practices, and standardization. The reference architecture is not limited by the current IT status, but should be targeted at a well-thou
bind_ip 0.0.0.0port 27017 if setting master/slave can set the following main configuration sudo./mongod--dbpath/var/lib /mongodb/--logpath/var/log/mongodb/mongodb.log--master--journal--logappend--fork from config sudo./mongod--dbpath/var/ lib/mongodb/--logpath/var/log/mongodb/mongodb.log--slave--logappend--fork--sourc
I introduced the basics of MongoDB in the front. We recommend two websites here. You can check them and explain them in more detail: Region #. Let's take a look at the data management and architecture of MongoDB in this article.
We have introduced the basics of MongoDB. We recommend two websites here. You can check the
Asp.net| Variable | The structure to the company has been nearly two weeks, but due to customer demand analysis has not come down, all projects have not started. Just use this time to carefully study the multilayer architecture of ASP.net, the main reference is the Wrox of a
ASP.net's multi-layer architecture is mainly to solve the relationship between data laye
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.