Commit ccc44efc authored by Matthias Kaeppler's avatar Matthias Kaeppler

Enable load balancing for PipelineHooksWorker

By using delayed consistency, we increase the
chance that this worker will read from replicas.

We also decided that high urgency is not required.
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62104
parent ea1c250c
......@@ -1545,7 +1545,7 @@
:worker_name: PipelineHooksWorker
:feature_category: :continuous_integration
:has_external_dependencies:
:urgency: :high
:urgency: :low
:resource_boundary: :cpu
:weight: 2
:idempotent:
......
......@@ -7,8 +7,8 @@ class PipelineHooksWorker # rubocop:disable Scalability/IdempotentWorker
include PipelineQueue
queue_namespace :pipeline_hooks
urgency :high
worker_resource_boundary :cpu
data_consistency :delayed, feature_flag: :load_balancing_for_pipeline_hooks_worker
# rubocop: disable CodeReuse/ActiveRecord
def perform(pipeline_id)
......
---
name: load_balancing_for_pipeline_hooks_worker
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62104
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/331424
milestone: '14.0'
type: development
group: group::memory
default_enabled: false
......@@ -22,4 +22,9 @@ RSpec.describe PipelineHooksWorker do
end
end
end
it_behaves_like 'worker with data consistency',
described_class,
feature_flag: :load_balancing_for_pipeline_hooks_worker,
data_consistency: :delayed
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