git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Prefetch maintenance might lead to thundering herd issues
@ 2024-09-20 15:15 Shubham Kanodia
  2024-09-20 19:20 ` Derrick Stolee
  0 siblings, 1 reply; 4+ messages in thread
From: Shubham Kanodia @ 2024-09-20 15:15 UTC (permalink / raw)
  To: git; +Cc: Patrick Steinhardt

The current git-maintenance prefetch command allows daily, weekly, and
hourly schedules.
However, in repositories with many active developers, timing `fetch`
to happen at the same wall clock time can lead to a thundering herd
problem for the backend server.

Ideally, these fetch requests would be spaced out by a small amount,
so as not to lead to a co-ordinated load on the server.

I don't see a way to configure this at the moment in a cross-platform
way at the moment. Perhaps it might be sensible to offset the cron
schedules slightly for users so as to not cause such an issue?

This might come at a small cost of predictability of the run, but that
should be okay as predictability isn't the primary goal for
maintenance.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-23  1:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 15:15 Prefetch maintenance might lead to thundering herd issues Shubham Kanodia
2024-09-20 19:20 ` Derrick Stolee
2024-09-22 18:40   ` Shubham Kanodia
2024-09-23  1:26     ` Derrick Stolee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).