1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SquashSRS4: Support circuit breaker

This commit is contained in:
winlin 2021-05-08 10:04:44 +08:00
parent fd6c653d3c
commit 276bd2223e
16 changed files with 458 additions and 12 deletions

View file

@ -487,6 +487,15 @@ public:
virtual bool auto_reload_for_docker();
// For tcmalloc, get the release rate.
virtual double tcmalloc_release_rate();
// Thread pool section.
public:
virtual bool get_circuit_breaker();
virtual int get_high_threshold();
virtual int get_high_pulse();
virtual int get_critical_threshold();
virtual int get_critical_pulse();
virtual int get_dying_threshold();
virtual int get_dying_pulse();
// stream_caster section
public:
// Get all stream_caster in config file.