Replication Introduction—複製 簡介

資料來源:http://docs.mongodb.org/manual/core/replication-introduction/

Replication is the process of synchronizing data across multiple servers.

Note

Replication(複製),是將數據複製一份到其他的伺服器進行備份。

Purpose of Replication

Replication provides redundancy and increases data availability. With multiple copies of data on different database servers, replication protects a database from the loss of a single server. Replication also allows you to recover from hardware failure and service interruptions. With additional copies of the data, you can dedicate one to disaster recovery, reporting, or backup.

In some cases, you can use replication to increase read capacity. Clients have the ability to send read and write operations to different servers. You can also maintain copies in different data centers to increase the locality and availability of data for distributed applications.

Note

目的:複製(Replication)提供了使用重複(冗餘)寫入(redundancy) 與增大(increases)。簡化資料庫備份管理。

複製多個資料庫副本可以保護你的資料庫,能使你的service在資料庫的伺服器掛掉後,能順利的使用複製好的次要伺服器運行而不會造成損失。

複製也以讓你避免因為軟硬體故障而導致的服務中斷,在某些情況下,你可以可以利用複製來提高讀取能力。

客戶端(undancy)能夠將讀取與寫入操作分開在不同的伺服器。

你也可以將副本存在不同的資料數據中心,提高在分散是應用程序中的資料的局部行與可用性。