summaryrefslogtreecommitdiff
path: root/provider_base/services/_couchdb_mirror.json
diff options
context:
space:
mode:
Diffstat (limited to 'provider_base/services/_couchdb_mirror.json')
-rw-r--r--provider_base/services/_couchdb_mirror.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/provider_base/services/_couchdb_mirror.json b/provider_base/services/_couchdb_mirror.json
index 67004c70..a496804d 100644
--- a/provider_base/services/_couchdb_mirror.json
+++ b/provider_base/services/_couchdb_mirror.json
@@ -3,14 +3,16 @@
//
{
"stunnel": {
- "couch_client": "= stunnel_client(nodes[couch.replication.masters.keys], couch.port)"
+ "clients": {
+ "couch_client": "= stunnel_client(nodes[couch.replication.masters.keys], couch.port)"
+ }
},
"couch": {
"mode": "mirror",
"replication": {
// for now, pick the first close one, or the first one.
// in the future, maybe use haproxy to balance among all the masters
- "masters": "= try{pick_node(:couch_master,nodes_near_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal')} || try{pick_node(:couch_master,nodes_like_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal')}"
+ "masters": "= try{pick_node(:couch_master,nodes_near_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')} || try{pick_node(:couch_master,nodes_like_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')}"
}
}
} \ No newline at end of file