开发者

Permanent continuous replication with CouchDB across reboots

开发者_开发百科How can I set up continuous replication after reboot? Continuous replication works only until the next reboot.


Continuous replication was not postponed to 1.3, it is available as of 1.1. As Dominic said, you use the _replicator database. Stick a doc in there like:

{
    "_id": "my_rep",
    "source":  "http://myserver.com:5984/foo",
    "target":  "bar",
    "create_target":  true,
    "continuous": true
}

For detailed documentation look here: https://gist.github.com/832610


Unfortunately, you still need to trigger the continuous replication after a server restart.

However, I asked this question on IRC, and it turns out that v1.1 of CouchDB will most likely include a special database called _replicator that will store replication settings. That way, they will remain even after a server restart.


it seems they postponed it to 1.3 https://issues.apache.org/jira/browse/COUCHDB-776

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜