mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Support circuit breaker. 4.0.103
This commit is contained in:
parent
46c980c70a
commit
92fc0af8f4
13 changed files with 434 additions and 9 deletions
|
@ -111,6 +111,37 @@ auto_reload_for_docker on;
|
|||
# default: 0.8
|
||||
tcmalloc_release_rate 0.8;
|
||||
|
||||
# For system circuit breaker.
|
||||
circuit_breaker {
|
||||
# Whether enable the circuit breaker.
|
||||
# Default: on
|
||||
enabled on;
|
||||
# The CPU percent(0, 100) ever 1s, as system high water-level, which enable the circuit-break
|
||||
# mechanism, for example, NACK will be disabled if high water-level.
|
||||
# Default: 90
|
||||
high_threshold 90;
|
||||
# Reset the high water-level, if number of pulse under high_threshold.
|
||||
# @remark 0 to disable the high water-level.
|
||||
# Default: 2
|
||||
high_pulse 2;
|
||||
# The CPU percent(0, 100) ever 1s, as system critical water-level, which enable the circuit-break
|
||||
# mechanism, for example, TWCC will be disabled if high water-level.
|
||||
# @note All circuit-break mechanism of high-water-level scope are enabled in critical.
|
||||
# Default: 95
|
||||
critical_threshold 95;
|
||||
# Reset the critical water-level, if number of pulse under critical_threshold.
|
||||
# @remark 0 to disable the critical water-level.
|
||||
# Default: 1
|
||||
critical_pulse 1;
|
||||
# If dying, also drop packets for players.
|
||||
# Default: 99
|
||||
dying_threshold 99;
|
||||
# If CPU exceed the dying_pulse times, enter dying.
|
||||
# @remark 0 to disable the dying water-level.
|
||||
# Default: 5
|
||||
dying_pulse 5;
|
||||
}
|
||||
|
||||
#############################################################################################
|
||||
# heartbeat/stats sections
|
||||
#############################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue