Module replication_helper
CouchDB DbUpdateNotification Script that triggers replication
Daemon script that acts as CouchDB DbUpdateNotificationProcess and triggers
replication on each incoming database update between the specified servers
Setup
Add this to your couch.ini:
DbUpdateNotificationProcess=/path/to/this/script/replication-helper.py --source-server=http://127.0.0.1 --target-server=http://127.0.0.1:5985
Format of messages it reads
{"db":"replication_notification_test","type":"updated"}
- Todo:
- Generic'-out the listener part and implement the resplication trigger as
- a delegate or subclass.
- Check if sub-second sleep delays are possible