Commit 57a35133 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Utilize load balancing for BuildQueueWorker

Update BuildQueueWorker to utilize readonly database replicas.

Changelog: performance
parent 449a63ad
......@@ -10,7 +10,7 @@ class BuildQueueWorker # rubocop:disable Scalability/IdempotentWorker
feature_category :continuous_integration
urgency :high
worker_resource_boundary :cpu
data_consistency :sticky, feature_flag: :load_balancing_for_build_queue_worker
data_consistency :sticky
# rubocop: disable CodeReuse/ActiveRecord
def perform(build_id)
......
---
name: load_balancing_for_build_queue_worker
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63212
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/332586
milestone: '14.0'
type: development
group: group::memory
default_enabled: false
......@@ -26,6 +26,5 @@ RSpec.describe BuildQueueWorker do
it_behaves_like 'worker with data consistency',
described_class,
feature_flag: :load_balancing_for_build_queue_worker,
data_consistency: :sticky
end
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