Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a96fb3a2
Commit
a96fb3a2
authored
Apr 07, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give each elasticsearch worker its own sidekiq queue
parent
5c5026c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
app/workers/elastic_commit_indexer_worker.rb
app/workers/elastic_commit_indexer_worker.rb
+2
-1
app/workers/elastic_indexer_worker.rb
app/workers/elastic_indexer_worker.rb
+2
-1
changelogs/unreleased-ee/2108-split-elasticsearch-sidekiq-queue-in-two.yml
...ased-ee/2108-split-elasticsearch-sidekiq-queue-in-two.yml
+4
-0
config/sidekiq_queues.yml
config/sidekiq_queues.yml
+2
-1
No files found.
app/workers/elastic_commit_indexer_worker.rb
View file @
a96fb3a2
class
ElasticCommitIndexerWorker
include
Sidekiq
::
Worker
include
DedicatedSidekiqQueue
include
Gitlab
::
CurrentSettings
sidekiq_options
queue: :elasticsearch
,
retry:
2
sidekiq_options
retry:
2
def
perform
(
project_id
,
oldrev
=
nil
,
newrev
=
nil
)
return
true
unless
current_application_settings
.
elasticsearch_indexing?
...
...
app/workers/elastic_indexer_worker.rb
View file @
a96fb3a2
class
ElasticIndexerWorker
include
Sidekiq
::
Worker
include
DedicatedSidekiqQueue
include
Elasticsearch
::
Model
::
Client
::
ClassMethods
include
Gitlab
::
CurrentSettings
sidekiq_options
queue: :elasticsearch
,
retry:
2
sidekiq_options
retry:
2
ISSUE_TRACKED_FIELDS
=
%w(assignee_id author_id confidential)
.
freeze
...
...
changelogs/unreleased-ee/2108-split-elasticsearch-sidekiq-queue-in-two.yml
0 → 100644
View file @
a96fb3a2
---
title
:
Give each elasticsearch worker its own sidekiq queue
merge_request
:
author
:
config/sidekiq_queues.yml
View file @
a96fb3a2
...
...
@@ -54,11 +54,12 @@
- [pages, 1]
- [system_hook_push, 1]
# EE specific queues
- [elasticsearch, 1]
- [geo, 1]
- [project_mirror, 1]
- [project_update_repository_storage, 1]
- [admin_emails, 1]
- [geo_repository_update, 1]
- [elastic_batch_project_indexer, 1]
- [elastic_indexer_worker, 1]
- [elastic_commit_indexer_worker, 1]
- [export_csv, 1]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment