基於CouchDB的分布式部署---複製

來源:互聯網
上載者:User

CouchDB對於實現分布式資料複製是非常容易的。

我們只需要發送POST請求到指定資料庫的_replicate URL即可,請求的Body是一個JSON。

wiki.apache.org/couchdb/Replication

如果需要持續進行複製,只需要在JSON中加上參數"continuous":true即可。

 

另外,我們可以通過Futon的replicator工具直接在UI上操作。

http://localhost:5984/_utils/replicator.html

 

譬如:

Replicate changes from: Local Database: testdb

To: Remote database : http://remote_ip:5984/testdb

勾選Continuous後點擊replicate按鈕即可。

CouchDB 的詳細介紹:請點這裡
CouchDB 的:請點這裡

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.