HomePhorge

Make repository daemons periodically check for out-of-sync repositories

Description

Make repository daemons periodically check for out-of-sync repositories

Summary:
See PHI1015. If you add new repository nodes to a cluster, we may not actually sync some repositories for up to 6 hours (if they've had no commits for 30 days).

Add an explicit check for out-of-sync repositories to trigger background sync.

Test Plan:

  • Ran bin/phd debug pullocal.
  • Fiddled with the repository_workingcopy version table to put the local node in and out of sync with the cluster.
  • Saw appropriate responses in the daemon (sync; wait if the last sync trigger was too recent).

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20078

Details

Provenance
epriestleyAuthored on Jan 31 2019, 12:15 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPf3e154eb02c7: Allow "inactive" repositories to be read over SSH for cluster sync
Branches
Loading...
Tags
Loading...

Event Timeline