[ 
https://issues.apache.org/jira/browse/SOLR-17277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850070#comment-17850070
 ] 

ASF subversion and git services commented on SOLR-17277:
--------------------------------------------------------

Commit e923ca510331026df536ce2b14159f40bb87548a in solr's branch 
refs/heads/main from Jason Gerlowski
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=e923ca51033 ]

SOLR-17277: Add 'warnOnly' mode to CircuitBreakers (#2476)

Tripped soft (i.e. 'warnOnly=true') breakers are logged in a single
message for each request, whether or not there are any 'hard' breakers
that will ultimately block the request from proceeding.

Circuit breakers are "hard" by default, but may be put into warn-only
mode by:
  - adding a `<bool name="warnOnly">true</bool>` setting under the
    `<circuitBreaker/>` tag for collection-level CB's.
  - adding a 'warnonly'-suffixed envvar/sysprop for "global" CB's.
    (e.g. `SOLR_CIRCUITBREAKER_QUERY_MEM_WARNONLY=true`)

> Circuit Breakers should support a "Warn-only" mode
> --------------------------------------------------
>
>                 Key: SOLR-17277
>                 URL: https://issues.apache.org/jira/browse/SOLR-17277
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Circuit Breakers
>    Affects Versions: main (10.0)
>            Reporter: Jason Gerlowski
>            Priority: Minor
>              Labels: newdev
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The threshold values used when configuring Circuit Breakers are incredibly 
> important.  Identifying when load begins to get "dangerous" is tricky: too 
> stringent and users will get 429s unnecessarily, too lax and the circuit 
> breakers won't be effective at preventing crashes.
> Conservative users may wish to evaluate potential thresholds without actually 
> blocking traffic.  Could Circuit Breakers offer some sort of "Dry Run" 
> capability - where a request that would otherwise have been blocked merely 
> logs a message?  This would allow users to get feedback on their thresholds 
> before they actually start sending CB-based 429s to users.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to