Score:0

is there a way to limit bandwidth usage for CouchDB replication?

br flag

I have a setup with one CouchDB master database hosted at a cloud provider and several slave CouchDB databases located at sites with LTE/mobile connection (=clients).

The goal is to replicate the master database to the clients quick and seamless with limited bandwith and short recovery time if a client goes offline due to network issues or is power cycled.

Changes will only take place as the master database.

Since clients can go offline for shorter or longer periods of time my assumption was to setup the replication task at each client with the master database as source and the local database as target.

This setup is confirmed working but costs a lot of mobile data. The client replication poll the changes feed every 10 secs with feed=continous and timeout=10000. Each polling sequence is around 1,5k of mobile data or about 350 MB/month.

Is it possible to configure the CouchDB replicator to use long polling? How can I set a higher timeout value? Or setup feed=long_poll between two couchdb databases?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.