Page MenuHomePhabricator

Make deployment prep have continuous replication lag
Closed, DuplicatePublic

Description

Replication lag in production can cause weird issues that are very hard to debug. Now that we run automated integration tests, always having a replication lag in our deployment environment may surface issues that developers usually are not aware of, and help us create better code.


Version: unspecified
Severity: enhancement

Details

Reference
bz57583

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:19 AM
bzimport set Reference to bz57583.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to Siebrand Mazeland from comment #0)

Replication lag in production can cause weird issues that are very hard to
debug. Now that we run automated integration tests, always having a
replication lag in our deployment environment may surface issues that
developers usually are not aware of, and help us create better code.

From bug 60058

(In reply to Erik Bernhardson from comment #1)

setting the lag is fairly trivial, percona makes a tool for it called
pt-slave-delay.

That, and we need to have slaves setup first...

Marking to lowest priority since nobody is sponsoring this for now.

Krinkle added a subscriber: Krinkle.

To do this by default seems incompatible with T87220. However, having an easy and documented way to induce lag seems useful indeed. Perhaps something one can cause by running a CLI command form a beta host. Or by having a depooled replica that is always lagged that can be selected via a WikimediaDebug option perhaps.

Merging into T40945.