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

[Question] ELI5 - how does 'threads' and 'prefetch' works in sneakers? #438

Open
zulhfreelancer opened this issue May 3, 2020 · 0 comments

Comments

@zulhfreelancer
Copy link

I'm new to RabbitMQ and sneakers gem. I read the Wiki and I saw 'threads' and 'prefetch' config.

I don't really get how they worked in sneakers and what's the best value should be set in my environment.

Currently I set the 'threads' to 2 and leave the 'prefetch' to default (not sure what's the default really). Upon launching sneakers process (bundle exec rake sneakers:run), my RabbitMQ server was steady and healthy.

Leaving that sneakers process running in terminal A, I ran rails s in terminal B and I quickly noticed my RabbitMQ server became unhealthy and took a while to get back to healthy state again.

  • Does this behaviour relates to 'threads' and 'prefetch' config in my sneakers initializer file?
  • Does these two config may affect the RabbitMQ health/performance?
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

1 participant