Commit f1108853 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Reduce max builds queue depth in builds queuing service

parent 99fd2b1e
...@@ -10,7 +10,11 @@ module Ci ...@@ -10,7 +10,11 @@ module Ci
Result = Struct.new(:build, :build_json, :valid?) Result = Struct.new(:build, :build_json, :valid?)
MAX_QUEUE_DEPTH = 50 ##
# The queue depth limit number has been determined by observing 95
# percentile of effective queue depth on gitlab.com. This is only likely to
# affect 5% of the worst case scenarios.
MAX_QUEUE_DEPTH = 45
def initialize(runner) def initialize(runner)
@runner = runner @runner = runner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment