Commit 52f63393 authored by Changzheng Liu's avatar Changzheng Liu Committed by Imre Farkas

Add worker_resource_boundary to Global Search workers

parent 5629c6c7
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
:feature_category: :global_search :feature_category: :global_search
:has_external_dependencies: :has_external_dependencies:
:urgency: :throttled :urgency: :throttled
:resource_boundary: :unknown :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags: []
...@@ -963,7 +963,7 @@ ...@@ -963,7 +963,7 @@
:feature_category: :global_search :feature_category: :global_search
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: :tags:
...@@ -1009,7 +1009,7 @@ ...@@ -1009,7 +1009,7 @@
:feature_category: :global_search :feature_category: :global_search
:has_external_dependencies: :has_external_dependencies:
:urgency: :low :urgency: :low
:resource_boundary: :unknown :resource_boundary: :cpu
:weight: 1 :weight: 1
:idempotent: :idempotent:
:tags: [] :tags: []
......
...@@ -8,6 +8,7 @@ class ElasticAssociationIndexerWorker # rubocop:disable Scalability/IdempotentWo ...@@ -8,6 +8,7 @@ class ElasticAssociationIndexerWorker # rubocop:disable Scalability/IdempotentWo
sidekiq_options retry: 3 sidekiq_options retry: 3
feature_category :global_search feature_category :global_search
worker_resource_boundary :cpu
tags :exclude_from_kubernetes tags :exclude_from_kubernetes
loggable_arguments 0, 2 loggable_arguments 0, 2
......
...@@ -4,6 +4,7 @@ class ElasticIndexBulkCronWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -4,6 +4,7 @@ class ElasticIndexBulkCronWorker # rubocop:disable Scalability/IdempotentWorker
include Elastic::BulkCronWorker include Elastic::BulkCronWorker
feature_category :global_search feature_category :global_search
worker_resource_boundary :cpu
urgency :throttled urgency :throttled
# Even though this worker is idempotent, until https://gitlab.com/gitlab-org/gitlab/-/issues/325291 is done # Even though this worker is idempotent, until https://gitlab.com/gitlab-org/gitlab/-/issues/325291 is done
# we can't use it with read-only database replicas # we can't use it with read-only database replicas
......
...@@ -6,6 +6,7 @@ class ElasticNamespaceIndexerWorker # rubocop:disable Scalability/IdempotentWork ...@@ -6,6 +6,7 @@ class ElasticNamespaceIndexerWorker # rubocop:disable Scalability/IdempotentWork
data_consistency :always data_consistency :always
feature_category :global_search feature_category :global_search
worker_resource_boundary :cpu
sidekiq_options retry: 2 sidekiq_options retry: 2
loggable_arguments 1 loggable_arguments 1
......
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