Page MenuHomePhabricator

Show warning when replag is high
Closed, ResolvedPublic

Description

The database replication from live databases to filtered replicas provided by Wikimedia Cloud Services, can sometimes have a lag (replag). When this is the case, the heartbeat metadata (https://tools.wmflabs.org/replag/) can detect this.

Let's update GUC to query this meta data and show a message to the user when replag is high. While this affects all Tools equally, it isn't something users are typically aware of this so can help them discover the information more easily, without needing to know about or manually check https://tools.wmflabs.org/replag/.

See also:

Details

Related Gerrit Patches:
labs/tools/guc : masterfrontend: Add warning if replag is high
labs/tools/guc : masterapi: Create q=replag API

Event Timeline

Krinkle created this task.Jul 7 2017, 10:41 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 7 2017, 10:41 PM
Krinkle triaged this task as High priority.Jul 7 2017, 10:41 PM
Elitre rescinded a token.
Elitre awarded a token.

Change 364356 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[labs/tools/guc@master] api: Create q=replag API

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

Change 364357 had a related patch set uploaded (by Krinkle; owner: Krinkle):
[labs/tools/guc@master] frontend: Add warning if replag is high

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

Change 364356 merged by jenkins-bot:
[labs/tools/guc@master] api: Create q=replag API

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

Change 364357 merged by jenkins-bot:
[labs/tools/guc@master] frontend: Add warning if replag is high

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

Krinkle closed this task as Resolved.Jul 11 2017, 2:15 AM
Krinkle claimed this task.