{"thread":{"id":"62246","subject":"[PATCH] doc: add a note about staggering of maintenance","startedAt":"2024-10-03T08:58:01Z","lastAt":"2024-10-03T12:00:35Z","messageCount":2,"participants":["Shubham Kanodia via GitGitGadget","Derrick Stolee"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"504019","messageId":"pull.1794.git.git.1727945877922.gitgitgadget@gmail.com","threadId":"62246","inReplyTo":null,"subject":"[PATCH] doc: add a note about staggering of maintenance","fromName":"Shubham Kanodia via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2024-10-03T08:57:57Z","receivedAt":"2024-10-03T08:58:01Z","isPatch":true,"sender":{"key":"shubham.kanodia10@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8946207?v=4"},"body":"From: Shubham Kanodia <shubham.kanodia10@gmail.com>\n\nGit maintenance tasks are staggered to a random minute of the hour per\nclient to avoid thundering herd issues. Updates the doc to add a note\nabout the same.\n\nSigned-off-by: Shubham Kanodia <shubham.kanodia10@gmail.com>\n---\n    doc: add a note about staggering of maintenance\n    \n    Git maintenance tasks are staggered to a random minute of the hour per\n    client to avoid thundering herd issues. Updates the doc to add a note\n    about the same.\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1794%2Fpastelsky%2Fsk%2Fdocs-update-maintenance-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1794/pastelsky/sk/docs-update-maintenance-v1\nPull-Request: https://github.com/git/git/pull/1794\n\n Documentation/git-maintenance.txt | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/git-maintenance.txt b/Documentation/git-maintenance.txt\nindex 9d968191331..6e6651309d3 100644\n--- a/Documentation/git-maintenance.txt\n+++ b/Documentation/git-maintenance.txt\n@@ -220,7 +220,9 @@ on an hourly basis. Each run executes the \"hourly\" tasks. At midnight,\n that process also executes the \"daily\" tasks. At midnight on the first day\n of the week, that process also executes the \"weekly\" tasks. A single\n process iterates over each registered repository, performing the scheduled\n-tasks for that frequency. Depending on the number of registered\n+tasks for that frequency. The processes are scheduled to a random minute of\n+the hour per client to spread out the load that multiple clients might\n+generate (e.g. from prefetching). Depending on the number of registered\n repositories and their sizes, this process may take longer than an hour.\n In this case, multiple `git maintenance run` commands may run on the same\n repository at the same time, colliding on the object database lock. This\n\nbase-commit: 111e864d69c84284441b083966c2065c2e9a4e78\n-- \ngitgitgadget\n"},{"id":"504024","messageId":"4328e3ca-f1e8-4537-8302-30fa7d062e38@gmail.com","threadId":"62246","inReplyTo":"pull.1794.git.git.1727945877922.gitgitgadget@gmail.com","subject":"Re: [PATCH] doc: add a note about staggering of maintenance","fromName":"Derrick Stolee","fromEmail":"stolee@gmail.com","sentAt":"2024-10-03T12:00:31Z","receivedAt":"2024-10-03T12:00:35Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 10/3/24 4:57 AM, Shubham Kanodia via GitGitGadget wrote:\n> From: Shubham Kanodia <shubham.kanodia10@gmail.com>\n> \n> Git maintenance tasks are staggered to a random minute of the hour per\n> client to avoid thundering herd issues. Updates the doc to add a note\n> about the same.\n\n> -tasks for that frequency. Depending on the number of registered\n> +tasks for that frequency. The processes are scheduled to a random minute of\n> +the hour per client to spread out the load that multiple clients might\n> +generate (e.g. from prefetching). Depending on the number of registered\n>   repositories and their sizes, this process may take longer than an hour.\nThanks for this update! I'm happy with this version.\n-Stolee\n"}]}