Can't execute sidekiq with queue list
Summary
Specifying a queues
list, per Sidekiq queues
documentation results in Sidekiq crashing.
Steps to reproduce
Configure a Sidekiq pod set per the below configuration.
Configuration used
gitlab:
sidekiq:
pods:
- name: elastic
concurrency: 25
maxReplicas: 1
minReplicas: 1
resources:
requests:
cpu: 0.5
memory: 2Gi
limits:
cpu: 1
memory: 4Gi
queues: 'elastic_namespace_rollout, elastic_namespace_indexer, elastic_indexer, elastic_full_index, elastic_commit_indexer, elastic_batch_project_indexer'
Current behavior
+ /scripts/set-config /var/opt/gitlab/templates /srv/gitlab/config
Begin parsing .erb files from /var/opt/gitlab/templates
Writing /srv/gitlab/config/gitlab.yml
Writing /srv/gitlab/config/sidekiq_queues.yml
Writing /srv/gitlab/config/database.yml
Writing /srv/gitlab/config/cable.yml
Writing /srv/gitlab/config/resque.yml
Copying other config files found in /var/opt/gitlab/templates
Copying smtp_settings.rb into /srv/gitlab/config
+ exec /bin/sh -c /scripts/process-wrapper
Starting Sidekiq
queues: \ cannot be defined twice
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:440:in `parse_queue'
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:352:in `block (2 levels) in parse_options'
/usr/lib/ruby/2.6.0/optparse.rb:1614:in `block in parse_in_order'
/usr/lib/ruby/2.6.0/optparse.rb:1568:in `catch'
/usr/lib/ruby/2.6.0/optparse.rb:1568:in `parse_in_order'
/usr/lib/ruby/2.6.0/optparse.rb:1562:in `order!'
/usr/lib/ruby/2.6.0/optparse.rb:1656:in `permute!'
/usr/lib/ruby/2.6.0/optparse.rb:1678:in `parse!'
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:393:in `parse_options'
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:232:in `setup_options'
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/cli.rb:31:in `parse'
/srv/gitlab/vendor/bundle/ruby/2.6.0/gems/sidekiq-5.2.7/bin/sidekiq:11:in `<top (required)>'
/srv/gitlab/vendor/bundle/ruby/2.6.0/bin/sidekiq:23:in `load'
/srv/gitlab/vendor/bundle/ruby/2.6.0/bin/sidekiq:23:in `<top (required)>'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/srv/gitlab/bin/bundle:3:in `load'
/srv/gitlab/bin/bundle:3:in `<main>'
Expected behavior
Sidekiq with custom queues list is working.
Versions
- Chart: v4.0.0
- Platform:
- Self-hosted: kube-spray
- Kubernetes: (
kubectl version
)- Client:
- Server:
- Helm: (
helm version
)- Client:
- Server:
Relevant logs
(Please provide any relevate log snippets you have collected, using code blocks (```) to format)
Edited by Jason Plum