Skip to content

Improve the performance of concurrency limit

Dmitry Gruzd requested to merge make-concurrency-limit-more-performant into master

What does this MR do and why?

This MR improves the performance of the concurrency limit middleware by introducing a lease key. It ensures that only the job with the lease can update the cache when the rest of the jobs using the existing cached value.

Context: https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/3775#note_2089502716

#486986 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dmitry Gruzd

Merge request reports

Loading