1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications/repository/phid
epriestley 966db4d38e Add an intracluster synchronization log for cluster repositories
Summary:
Depends on D19778. Ref T13216. See PHI943, PHI889, et al.

We currently have a push log and a pull log, but do not separately log intracluster synchronization events. We've encountered several specific cases where having this kind of log would be helpful:

  - In PHI943, an install was accidentally aborting locks early. Having timing information in the sync log would let us identify this more quickly.
  - In PHI889, an install hit an issue with `MaxStartups` configuration in `sshd`. A log would let us identify when this is an issue.
  - In PHI889, I floated a "push the linux kernel + fetch timeout" theory. A sync log would let us see sync/fetch timeouts to confirm this being a problem in practice.
  - A sync log will help us assess, develop, test, and monitor intracluster routing sync changes (likely those in T13211) in the future.

Some of these events are present in the pull log already, but only if they make it as far as running a `git upload-pack` subprocess (not the case with `MaxStartups` problems) -- and they can't record end-to-end timing.

No UI yet, I'll add that in a future change.

Test Plan:
  - Forced all operations to synchronize by adding `|| true` to the version check.
  - Pulled, got a sync log in the database.

Reviewers: amckinley

Reviewed By: amckinley

Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam

Maniphest Tasks: T13216

Differential Revision: https://secure.phabricator.com/D19779
2018-11-07 18:24:20 -08:00
..
PhabricatorRepositoryCommitPHIDType.php Introduce an AuditStatus object for commits and move some callsites to it 2018-09-07 10:20:04 -07:00
PhabricatorRepositoryIdentityPHIDType.php Migrate DiffusionBlameController to use repo identities 2018-09-26 14:45:58 -07:00
PhabricatorRepositoryPullEventPHIDType.php Add a basic pull event log for debugging repository cloning 2016-01-28 08:18:34 -08:00
PhabricatorRepositoryPushEventPHIDType.php Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
PhabricatorRepositoryPushLogPHIDType.php Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
PhabricatorRepositoryRefCursorPHIDType.php Add an "Onto Branch" selector control to "Land Revision" dialog 2015-12-10 14:21:38 -08:00
PhabricatorRepositoryRepositoryPHIDType.php Add Differential and Herald mail stamps and some refinements 2018-02-06 04:06:07 -08:00
PhabricatorRepositorySyncEventPHIDType.php Add an intracluster synchronization log for cluster repositories 2018-11-07 18:24:20 -08:00
PhabricatorRepositoryURIPHIDType.php Rough sketch of new repository URI editing 2016-04-29 09:21:00 -07:00