-
Notifications
You must be signed in to change notification settings - Fork 674
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
SOLR-16974: Global Circuit Breakers #1919
SOLR-16974: Global Circuit Breakers #1919
Conversation
Next step would be to add some solr.xml parsing, say from a new |
solr/core/src/java/org/apache/solr/util/circuitbreaker/CircuitBreakerRegistry.java
Show resolved
Hide resolved
22c2e25
to
2907ecf
Compare
Deregister global breaker after test
solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java
Outdated
Show resolved
Hide resolved
@@ -814,6 +815,7 @@ public Path getInstancePath() { | |||
new Class<?>[] { | |||
// DO NOT ADD THINGS TO THIS LIST -- ESPECIALLY THINGS THAT CAN BE CREATED DYNAMICALLY | |||
// VIA RUNTIME APIS -- UNTIL CAREFULLY CONSIDERING THE ISSUES MENTIONED IN SOLR-8311 | |||
CircuitBreaker.class, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any objections to add CircuitBreaker to the list of SolrCoreAware classes? Solr's home grown IOC sucks but that's what we have...
I think this is ready for review |
solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/util/circuitbreaker/CircuitBreakerRegistry.java
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/util/circuitbreaker/CircuitBreakerRegistry.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/util/circuitbreaker/CircuitBreakerRegistry.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/util/circuitbreaker/CPUCircuitBreaker.java
Outdated
Show resolved
Hide resolved
…BreakerRegistry.java Co-authored-by: Christine Poerschke <[email protected]>
…BreakerRegistry.java Co-authored-by: Christine Poerschke <[email protected]>
Co-authored-by: Christine Poerschke <[email protected]> (cherry picked from commit e740123)
Co-authored-by: Christine Poerschke <[email protected]> (cherry picked from commit e740123)
Co-authored-by: Christine Poerschke <[email protected]>
Co-authored-by: Christine Poerschke <[email protected]>
https://issues.apache.org/jira/browse/SOLR-16974
Proof-of-concept with static map of global breakers.