Page MenuHomePhabricator

enable cirrussearch to talk to two clusters
Closed, DuplicatePublic

Description

The multi-datacenter work requires cirrussearch to be able to fail over from querying the local cluster to querying a cluster in another datacenter over the WAN. It additionally requires being able to write to both clusters from a single instance of php in any cluster.

Currently Elastica\Connection is a singleton, but mmulie made it possible to use as a normal object as well. Cirrussearch should be refactor to create and pass arround connection objects, rather than reuse a singleton all over the place.

Related: T105707

Event Timeline

EBernhardson raised the priority of this task from to Needs Triage.
EBernhardson updated the task description. (Show Details)
EBernhardson added a project: CirrusSearch.
EBernhardson subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
EBernhardson set Security to None.

Ops is about to (has already?) put the order in for this hardware. Moving this card into the sprint to ensure we keep up our end of the work necessary.

Change 235149 had a related patch set uploaded (by EBernhardson):
[WIP] refactor out connection singleton

https://gerrit.wikimedia.org/r/235149

Change 235175 had a related patch set uploaded (by EBernhardson):
[WIP] Remove connection singleton

https://gerrit.wikimedia.org/r/235175

Change 237264 had a related patch set uploaded (by EBernhardson):
[WIP] Enable communication with multiple datacenters

https://gerrit.wikimedia.org/r/237264

Change 237282 had a related patch set uploaded (by EBernhardson):
Update CirrusSearch config to define clusters

https://gerrit.wikimedia.org/r/237282

These patches should be done this week, and we expect Ops will review next week, and maybe deploy the week after.

Change 237264 had a related patch set uploaded (by EBernhardson):
Enable communication with multiple datacenters

https://gerrit.wikimedia.org/r/237264

Change 237264 had a related patch set uploaded (by EBernhardson):
Enable communication with multiple datacenters

https://gerrit.wikimedia.org/r/237264

Change 237282 abandoned by EBernhardson:
Update CirrusSearch config to define clusters

Reason:
This was done in I16ff0d81

https://gerrit.wikimedia.org/r/237282