Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sidekiq-pro not starting any processes and no jobs are consumed #3903

Closed
eranamiel86 opened this issue Jul 28, 2018 · 6 comments
Closed

sidekiq-pro not starting any processes and no jobs are consumed #3903

eranamiel86 opened this issue Jul 28, 2018 · 6 comments

Comments

@eranamiel86
Copy link

Ruby version: 2.2.3, rails 4.2.9
Sidekiq / Pro version(s): sidekiq 5.1.3 with sidekiq-pro 4.03

i'm running sidekiq 5.1.3 with no problem and all working well.
when i installed sidekiq pro, i run sidekiq command, as always, in my terminal, its start running and all seems ok.
i also can see in the web ui the it running with pro version.

the problem is that i don't see any busy workers and no jobs are being consumed.
i also try to run with verbose mode but there is no indication for any problem.
i'm using mac os x high sierra 10.13.6.

this is my sidekiq.yml

Sidekiq process #1 - high-flow, regular events


:verbose: true
:concurrency: 1
:queues:

  • [events, 10]
  • [events_memsql, 9]
  • [reindex_users, 8]
  • [facebook_split_spends, 5]
  • [halo, 5]
  • [alexa, 5]
  • [default, 5]
  • [visitor_attribution, 5]
  • [link_visitors_to_users, 5]
  • [visitors_tracking, 3]
  • [alerts, 3]
  • [google_calendar, 4]
  • [reports, 2]
  • [active_campaign, 1]
  • [active_campaign_low ,1]
  • [active_campaign_medium ,3]
  • [active_campaign_high ,10]
  • [match_upgrades, 8]
  • [touch_points, 8]
  • [zombies, 5]
  • [platform_sync, 10]
  • [platform_sync_low, 1]
  • [ab_test, 10]
  • [memsql_sync, 10]

image

image

@mperham
Copy link
Collaborator

mperham commented Jul 28, 2018 via email

@eranamiel86
Copy link
Author

eranamiel86 commented Jul 28, 2018

i'm running redis locally
$redis = Redis.new({
:host => $creds.get('REDIS/HOST'),
:port => $creds.get('REDIS/PORT'),
:password => $creds.get('REDIS/PASSWORD')
})

redis_conn = proc {
$redis
}

Sidekiq.configure_client do |config|
config.redis = ConnectionPool.new(size: 10, &redis_conn)
end

Sidekiq.configure_server do |config|
config.redis = ConnectionPool.new(size: 30, &redis_conn)
end

web ui url is: redis://localhost:6379/0
and its also my local redis url.

my point is that not in pro version its working fine.

@eranamiel86
Copy link
Author

and also why there no running procees ?
image

@mperham
Copy link
Collaborator

mperham commented Jul 28, 2018

That's what we're trying to figure out.

I believe you are misconfiguring Sidekiq. Let it handle the connection pooling for you:

redis = {
  :host => $creds.get('REDIS/HOST'),
  :port => $creds.get('REDIS/PORT'),
  :password => $creds.get('REDIS/PASSWORD')
}

Sidekiq.configure_client do |config|
  config.redis = redis
end

Sidekiq.configure_server do |config|
  config.redis = redis
end

@eranamiel86
Copy link
Author

ok. now it's working, can u explain what is the reason ?
what is the difference between what i did and your way ?

@mperham
Copy link
Collaborator

mperham commented Jul 30, 2018 via email

@mperham mperham closed this as completed Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants