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

Integrate chained ConfigurableValues for global defaults #34

Merged
merged 4 commits into from
Dec 2, 2014

Conversation

robhruska
Copy link
Member

(Using a not-yet-available prerelease version of Hudl.Config).

Fixes #33.

Breaker, metrics, pool, and fallback configuration can have default global values provided via config (instead of the hard-coded literal defaults), which allows greater flexibility to tune the defaults at runtime or in an environment-specific way.

Example (using a circuit breaker config); values are used in this order:

  1. mjolnir.breaker.<breaker-name>.thresholdPercentage
  2. mjolnir.breaker.default.thresholdPercentage
  3. Literal default from CommandContext (50).

Potential breaking change: Any breakers or pools that had previously been named default will and received specific configuration values will cause those values to get used over the defaults in the code.

robhruska added a commit that referenced this pull request Dec 2, 2014
Integrate chained ConfigurableValues for global defaults
@robhruska robhruska merged commit 76d8af4 into next Dec 2, 2014
@robhruska robhruska deleted the ConfigurableDefaults branch December 2, 2014 20:43
@robhruska robhruska mentioned this pull request Dec 2, 2014
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.

None yet

1 participant