1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 23:10:57 +01:00
phorge-phorge/src/infrastructure/util
epriestley 4675306615 Add a "metronome" for spreading service call load
Summary:
Ref T13244. See D20080. Rather than randomly jittering service calls, we can give each host a "metronome" that ticks every 60 seconds to get load to spread out after one cycle.

For example, web001 ticks (and makes a service call) when the second hand points at 0:17, web002 at 0:43, web003 at 0:04, etc.

For now I'm just planning to seed the metronomes randomly based on hostname, but we could conceivably give each host an assigned offset some day if we want perfectly smooth service call rates.

Test Plan: Ran unit tests.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13244

Differential Revision: https://secure.phabricator.com/D20087
2019-02-05 14:06:22 -08:00
..
__tests__ Add a "metronome" for spreading service call load 2019-02-05 14:06:22 -08:00
password Fix spelling 2017-10-09 10:48:04 -07:00
PhabricatorGlobalLock.php When we fail to acquire a repository lock, try to provide a hint about why 2018-09-24 15:20:07 -07:00
PhabricatorHash.php Upgrade sessions digests to HMAC256, retaining compatibility with old digests 2018-12-13 16:15:38 -08:00
PhabricatorMetronome.php Add a "metronome" for spreading service call load 2019-02-05 14:06:22 -08:00
PhabricatorSlug.php Improve error messages for bad hashtags and project names 2015-12-24 08:11:02 -08:00
PhabricatorSSHKeyGenerator.php Add a "Generate Keypair" option on the SSH Keys panel 2014-03-12 18:17:11 -07:00