Unverified Commit 5817ec56 authored by Sean McGivern's avatar Sean McGivern
Browse files

Only probe 1,000 jobs for probe_jobs_limit

With large job sizes, we can spend a lot of time in both Ruby and Redis
getting 10,000 jobs. 1,000 gives us an order of magnitude of headroom.
parent 294b1c71
...@@ -15,7 +15,7 @@ module GitLab ...@@ -15,7 +15,7 @@ module GitLab
# timing out. But when we have a very large queue, we are most in need of # timing out. But when we have a very large queue, we are most in need of
# reliable metrics. This trades off completeness for predictability by # reliable metrics. This trades off completeness for predictability by
# only taking a limited amount of items from the head of the queue. # only taking a limited amount of items from the head of the queue.
PROBE_JOBS_LIMIT = 10_000 PROBE_JOBS_LIMIT = 1_000
POOL_SIZE = 3 POOL_SIZE = 3
......
Supports Markdown
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