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

Timeout::Error: Waited 1 sec #779

Closed
thibaudgg opened this issue Mar 18, 2013 · 2 comments
Closed

Timeout::Error: Waited 1 sec #779

thibaudgg opened this issue Mar 18, 2013 · 2 comments

Comments

@thibaudgg
Copy link
Contributor

Hi,

I got this issue on the client side (with client size of 1, as default), and I see that wait time is hardcoded to 1s. Do I need to increase my client size? (It runs on a app with Puma, so lot of threads).

[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool/timed_stack.rb:25:in `block (2 levels) in pop'
[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool/timed_stack.rb:22:in `loop'
[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool/timed_stack.rb:22:in `block in pop'
:
[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool/timed_stack.rb:21:in `pop'
[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool.rb:58:in `checkout'
[GEM_ROOT]/gems/connection_pool-1.0.0/lib/connection_pool.rb:46:in `with'
[GEM_ROOT]/gems/sidekiq-2.8.0/lib/sidekiq.rb:72:in `redis'
[GEM_ROOT]/gems/sidekiq-2.8.0/lib/sidekiq/client.rb:94:in `raw_push'
[GEM_ROOT]/gems/sidekiq-2.8.0/lib/sidekiq/client.rb:43:in `push'
[GEM_ROOT]/gems/sidekiq-2.8.0/lib/sidekiq/worker.rb:68:in `client_push'
[GEM_ROOT]/gems/sidekiq-2.8.0/lib/sidekiq/worker.rb:38:in `perform_async'

Thanks for your support.

@mperham
Copy link
Collaborator

mperham commented Mar 18, 2013

Yeah, if you have a multithreaded client, the client pool default sizing is not appropriate. The default assumes a world ruled by Unicorn and Passenger. Change your client redis size to something > 1.

@mperham mperham closed this as completed Mar 18, 2013
@thibaudgg
Copy link
Contributor Author

Ok great, thanks!

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