[
https://issues.apache.org/jira/browse/SOLR-18284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SOLR-18284:
----------------------------------
Labels: pull-request-available (was: )
> Fix load-average and memory circuit breakers
> --------------------------------------------
>
> Key: SOLR-18284
> URL: https://issues.apache.org/jira/browse/SOLR-18284
> Project: Solr
> Issue Type: Bug
> Reporter: Mark Robert Miller
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Load-average and memory circuit breakers were doing more harm than good under
> high concurrency.
> LoadAverageCircuitBreaker called OperatingSystemMXBean.getSystemLoadAverage()
> on every request. The OS load average is a one-minute moving average, so
> re-polling it per-request is wasted work - and when many requests arrived
> concurrently, the syscall stampede hammered the CPU, which is the condition
> this breaker exists to prevent rather than cause.
> MemoryCircuitBreaker sampled MemoryMXBean.getHeapMemoryUsage().getUsed() on a
> 30-second moving average. With a generational collector that signal climbs
> toward max between collections during normal operation; the breaker would
> trip on transient pre-GC peaks that GC was about to reclaim.
> * I extracted these from the experimental circuit breaker overhaul PR.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]