Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Optimise queueing of inbound replication commands (#7861)
Browse files Browse the repository at this point in the history
When we get behind on replication, we tend to stack up background processes
behind a linearizer. Bg processes are heavy (particularly with respect to
prometheus metrics) and linearizers aren't terribly efficient once the queue
gets long either.

A better approach is to maintain a queue of requests to be processed, and
nominate a single process to work its way through the queue.

Fixes: #7444
  • Loading branch information
richvdh authored Jul 16, 2020
1 parent 346476d commit e530006
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 116 deletions.
1 change: 1 addition & 0 deletions changelog.d/7861.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Optimise queueing of inbound replication commands.
Loading

0 comments on commit e530006

Please sign in to comment.