Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-09-08 13:54:24 +0300
committerQuang-Minh Nguyen <qmnguyen@gitlab.com>2023-09-21 04:43:31 +0300
commit069aecf4ef2a9c010c506c663b2e670203ed3c26 (patch)
treeb415438809ceb02def7e32205d45a8a362b10d7d
parent0024a1caedfbb1bb8112c6b62d9d90c747db617c (diff)
limiter: Add use_resizable_semaphore_in_concurrency_limiter feature flag
-rw-r--r--internal/featureflag/ff_use_resizable_semaphore_in_concurrency_limiter.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/featureflag/ff_use_resizable_semaphore_in_concurrency_limiter.go b/internal/featureflag/ff_use_resizable_semaphore_in_concurrency_limiter.go
new file mode 100644
index 000000000..07139b218
--- /dev/null
+++ b/internal/featureflag/ff_use_resizable_semaphore_in_concurrency_limiter.go
@@ -0,0 +1,12 @@
+package featureflag
+
+// UseResizableSemaphoreInConcurrencyLimiter enables the usage of limiter.resizableSemaphore in
+// limiter.ConcurrencyLimiter. After the flag is enabled, the resizable semaphore implementation
+// will be used, but with a static limit. There shouldn't be any changes in terms of functionality
+// and resource usage.
+var UseResizableSemaphoreInConcurrencyLimiter = NewFeatureFlag(
+ "use_resizable_semaphore_in_concurrency_limiter",
+ "v16.5.0",
+ "https://gitlab.com/gitlab-org/gitaly/-/issues/5581",
+ false,
+)