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

Fix excessive reconfigure #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

urkle
Copy link

@urkle urkle commented Jan 18, 2016

  • a bit of cleanup of how librato-sidekiq configuration is done
    • sidekiq "initializes" the middleware once per each thread so having the initialize re-register is a BAD idea.
    • now a separate Configuration class exists
  • configuration method is not on Librato::Sidekiq.configure and will now reload the middleware ONLY when reconfigured
  • fixed version checking of Librato::Rails

urkle added 4 commits January 17, 2016 17:14
…that

- no longer do the middleware reconfigure themselves on init
  - this is BAD as sidekiq allocates new middleware PER thread!!
- centralize configuration to a single concise class
- move registration of the middleware to new module level code in Librato::Sidekiq
- fix checking for librato rails version # (current is 1.1.0 which failed the LIBRATO_AUTORUN check)
@urkle
Copy link
Author

urkle commented Jan 18, 2016

This is a cleaner approach to fixing the issue described in #8

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

Successfully merging this pull request may close these issues.

1 participant