Page MenuHomePhabricator

After restarting, repository daemons all do a lot of work
Closed, ResolvedPublic

Description

After we restart a repo host, all the repository daemons jump into their full fetch/pull cycle from the beginning. This can create high amounts of load on the box:

load average: 81.65, 34.03, 14.01

This only lasts for a minute or two, but it might be nice to do something like:

  • Store update state on the Repository objects so restarting doesn't re-pull everything immediately (there are plenty of ways to prioritize an update already).
  • Have the script examine repository state on startup and immediately delay pulls according to last commit time. This seems simpler than the above and probably better in every way.
  • Have some kind of "warm start" flag which activates the above behavior.

Revisions and Commits

Restricted Differential Revision
Restricted Differential Revision

Event Timeline

epriestley raised the priority of this task from to Low.
epriestley updated the task description. (Show Details)
epriestley added a project: Phacility.
epriestley moved this task to Do Eventually on the Phacility board.
epriestley added a subscriber: epriestley.
epriestley added a revision: Restricted Differential Revision.Sep 19 2016, 11:48 PM
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Sep 19 2016, 11:49 PM
epriestley added a commit: Restricted Diffusion Commit.
epriestley added a commit: Restricted Diffusion Commit.Sep 20 2016, 12:31 AM