You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate options to make partial backfills resumable more often #1944
As far as I understand, we currently update the version of backfilled data only after a whole shard has completed backfilling.
If for some reason a node goes down while backfilling, it has to backfill the whole shard again when it gets restarted. In combination with slow backfills on rotational drives (#1885), that can become quite a pain.
I wonder if we could artificially split up a range shard into a number of (even) smaller ranges during backfilling. Each of those subranges could be backfilled independently one after another. As soon as one subrange finishes backfilling, its current data version could be updated.
If a partially complete backfilling process is aborted for some reason, subranges that had already completed backfilling wouldn't have to be backfilled all over again when the process is resumed later.
Marking for subsequent. If this turns out to be difficult, we should probably move this to 2.x. If it is easy to do on the other hand it might be worth doing earlier.
There might also be other options.
Just talked to @danielmewes about an additional issue I wanted to point out here.
Suppose we have N secondaries total.
We should also consider backfilling K secondaries at a time (where K < N). I can imagine the primary getting overloaded if we try to backfill a large number of secondaries at once. Alternatively secondaries can backfill from other secondaries and then switch to backfilling from the primary at the end.
We should benchmark backfilling to large number of secondaries to see how it affects the primary and whether this is a real problem.
Linking #2002 because this should be implemented in a way that also fixes #2002. Specifically the backfill should happen in primary key order, and such that at any time the already backfilled part of a shard is coherent.
Activity
coffeemug commentedon Feb 27, 2014
Just talked to @danielmewes about an additional issue I wanted to point out here.
Suppose we have N secondaries total.
We should also consider backfilling K secondaries at a time (where K < N). I can imagine the primary getting overloaded if we try to backfill a large number of secondaries at once. Alternatively secondaries can backfill from other secondaries and then switch to backfilling from the primary at the end.
We should benchmark backfilling to large number of secondaries to see how it affects the primary and whether this is a real problem.
coffeemug commentedon Jul 22, 2014
Adding the phrase "incremental backfilling" to make search on github easier for this issue.
danielmewes commentedon Oct 28, 2014
Linking #2002 because this should be implemented in a way that also fixes #2002. Specifically the backfill should happen in primary key order, and such that at any time the already backfilled part of a shard is coherent.
danielmewes commentedon Mar 24, 2015
Superseded by #3886