Resolve "Increase jitter for AdjournedGroupDeletionWorker"
What does this MR do and why?
Related to #346170 (comment 824957958)
Based on the graph here, the 95 percentile of GroupDestroyWorker
originating from AdjournedGroupDeletionWorker
is close to 20 seconds
.
We currently have a jitter of only 10 seconds
, which is close to the 75th percentile number. So, if we can increase the jitter between groups from 10 seconds to 20 seconds, we can ensure that more jobs finish processing before the next one is enqueued, which in turn prevents crowding of jobs which is possibly currently resulting in some ActiveRecord::QueryCanceled
errors while these jobs are run.
This MR also changes the start time of the AdjournedGroupDeletionWorker
cron to 2 AM everyday. With !81521 (merged), AdjournedProjectsDeletionCronWorker
now runs at 7 AM everyday, so here we have a comfortable 5 hour gap between the two to ensure that jobs from these 2 cron workers do not overlap.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #346170 (closed)