Skip to content

Investigate options to make partial backfills resumable more often #1944

Closed

Description

@danielmewes

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.

Activity

  1. added this to the subsequent milestone on Feb 12, 2014
  2. coffeemug commented on Feb 27, 2014

    @coffeemug
    Contributor

    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.

  3. coffeemug commented on Jul 22, 2014

    @coffeemug
    Contributor

    Adding the phrase "incremental backfilling" to make search on github easier for this issue.

  4. danielmewes commented on Oct 28, 2014

    @danielmewes
    MemberAuthor

    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.

  5. danielmewes commented on Mar 24, 2015

    @danielmewes
    MemberAuthor

    Superseded by #3886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions