Two little issues
- there was an extra call to getHostForWrite,
- The engine instance was shared between multiple service definitions so it
was overwriting the list of writable hosts from one service with hosts from another.
Differential D17581
Make sure writes go to the right cluster 20after4 on Mar 30 2017, 2:31 AM. Authored by Tags None Referenced Files
Subscribers
Details
Two little issues
was overwriting the list of writable hosts from one service with hosts from another. tested in wikimedia production with multiple services defined like this: language=json [ { "hosts": [ { "host": "search.svc.codfw.wmnet", "protocol": "https", "roles": { "read": true, "write": true }, "version": 5 } ], "path": "/phabricator", "port": 9243, "type": "elasticsearch" }, { "hosts": [ { "host": "search.svc.eqiad.wmnet", "protocol": "https", "roles": { "read": true, "write": true }, "version": 5 } ], "path": "/phabricator", "port": 9243, "type": "elasticsearch" } ]
Diff Detail
|