mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Heartbeat: Report ports for proxy server. v5.0.215 v6.0.156 v7.0.15 (#4171)
The heartbeat of SRS is a timer that requests an HTTP URL. We can use this heartbeat to report the necessary information for registering the backend server with the proxy server. ```text SRS(backend) --heartbeat---> Proxy server ``` A proxy server is a specialized load balancer for media servers. It operates at the application level rather than the TCP level. For more information about the proxy server, see issue #4158. Note that we will merge this PR into SRS 5.0+, allowing the use of SRS 5.0+ as the backend server, not limited to SRS 7.0. However, the proxy server is introduced in SRS 7.0. It's also possible to implement a registration service, allowing you to use other media servers as backend servers. For example, if you gather information about an nginx-rtmp server and register it with the proxy server, the proxy will forward RTMP streams to nginx-rtmp. The backend server is not limited to SRS. --------- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
d70e7357cf
commit
b475d552aa
9 changed files with 110 additions and 14 deletions
|
@ -907,6 +907,14 @@ heartbeat {
|
|||
# Overwrite by env SRS_HEARTBEAT_SUMMARIES
|
||||
# default: off
|
||||
summaries off;
|
||||
# Whether report with listen ports.
|
||||
# if on, request with the ports of SRS:
|
||||
# {
|
||||
# "rtmp": ["1935"], "http": ["8080"], "api": ["1985"], "srt": ["10080"], "rtc": ["8000"]
|
||||
# }
|
||||
# Overwrite by env SRS_HEARTBEAT_PORTS
|
||||
# default: off
|
||||
ports off;
|
||||
}
|
||||
|
||||
# system statistics section.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue