Page MenuHomePhabricator

Cleanup active-DC based MW config code and make it more robust and easy to change
Closed, ResolvedPublic

Description

A general issue is also that of config. MediaWiki has lots of config deciding what DB/swift to talk to. If stale config is still running in prod due to network partitions (breaking scap and so on), we can still have problems. One option is to have config switches around "what DC is active".

The active DC name could be pulled from a file, managed by ecd eventually (instead of the less reliable scap). We could have apaches go read only if that file is out of contact with etcd.

Event Timeline

aaron claimed this task.
aaron raised the priority of this task from to Medium.
aaron updated the task description. (Show Details)
aaron added subscribers: Krinkle, jcrespo, Glaisher and 13 others.
aaron renamed this task from Cleanup active-DC based MW code and make it more robust and easy to change to Cleanup active-DC based MW config code and make it more robust and easy to change.Oct 5 2015, 6:30 PM
aaron updated the task description. (Show Details)
aaron set Security to None.

Other things will probably need the same kind of switching:

First thing that comes to mind is Elasticsearch

Also: various redis configs, I guess

Change 266509 had a related patch set uploaded (by Giuseppe Lavagetto):
Rationalize definition of service hosts

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

Change 266510 had a related patch set uploaded (by Giuseppe Lavagetto):
Define Production service entries for InitialiseSettings

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

Change 266511 had a related patch set uploaded (by Giuseppe Lavagetto):
Reduce poolcounter configuration complexity

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

Change 266512 had a related patch set uploaded (by Giuseppe Lavagetto):
Add references to wmfServices for Cirrusearch.

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

Change 266513 had a related patch set uploaded (by Giuseppe Lavagetto):
Use wmfMasterDatacenter for picking the master redis config

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

Change 266509 merged by jenkins-bot:
Rationalize definition of service hosts

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

mark raised the priority of this task from Medium to High.Feb 10 2016, 3:52 PM

Change 266510 merged by jenkins-bot:
Define service entries for InitialiseSettings

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

Change 266511 merged by jenkins-bot:
Reduce poolcounter configuration complexity

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

Change 266512 merged by jenkins-bot:
Add references to wmfServices for Cirrusearch.

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

Change 266513 merged by jenkins-bot:
Use wmfMasterDatacenter for picking the master redis config

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

Change 279350 had a related patch set uploaded (by Giuseppe Lavagetto):
Use ProductionServices for the jobqueue configuration

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

Change 279355 had a related patch set uploaded (by Giuseppe Lavagetto):
Use local resources in codfw for parsoid, url-downloader and mathoid

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

Change 279350 merged by jenkins-bot:
Use ProductionServices for the jobqueue configuration

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

Change 279355 merged by jenkins-bot:
Use local resources in codfw for parsoid, url-downloader and mathoid

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