You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk/conf
Winlin 2e4014ae1c
Proxy: Support proxy server for SRS. v7.0.16 (#4158)
Please note that the proxy server is a new architecture or the next
version of the Origin Cluster, which allows the publication of multiple
streams. The SRS origin cluster consists of a group of origin servers
designed to handle a large number of streams.

```text
                         +-----------------------+
                     +---+ SRS Proxy(Deployment) +------+---------------------+
+-----------------+  |   +-----------+-----------+      +                     +
| LB(K8s Service) +--+               +(Redis/MESH)      + SRS Origin Servers  +
+-----------------+  |   +-----------+-----------+      +    (Deployment)     +
                     +---+ SRS Proxy(Deployment) +------+---------------------+
                         +-----------------------+
```

The new origin cluster is designed as a collection of proxy servers. For
more information, see [Discussion
#3634](https://github.com/ossrs/srs/discussions/3634). If you prefer to
use the old origin cluster, please switch to a version before SRS 6.0.

A proxy server can be used for a set of origin servers, which are
isolated and dedicated origin servers. The main improvement in the new
architecture is to store the state for origin servers in the proxy
server, rather than using MESH to communicate between origin servers.
With a proxy server, you can deploy origin servers as stateless servers,
such as in a Kubernetes (K8s) deployment.

Now that the proxy server is a stateful server, it uses Redis to store
the states. For faster development, we use Go to develop the proxy
server, instead of C/C++. Therefore, the proxy server itself is also
stateless, with all states stored in the Redis server or cluster. This
makes the new origin cluster architecture very powerful and robust.

The proxy server is also an architecture designed to solve multiple
process bottlenecks. You can run hundreds of SRS origin servers with one
proxy server on the same machine. This solution can utilize multi-core
machines, such as servers with 128 CPUs. Thus, we can keep SRS
single-threaded and very simple. See
https://github.com/ossrs/srs/discussions/3665#discussioncomment-6474441
for details.

```text
                                       +--------------------+
                               +-------+ SRS Origin Server  +
                               +       +--------------------+
                               +
+-----------------------+      +       +--------------------+
+ SRS Proxy(Deployment) +------+-------+ SRS Origin Server  +
+-----------------------+      +       +--------------------+
                               +
                               +       +--------------------+
                               +-------+ SRS Origin Server  +
                                       +--------------------+
```

Keep in mind that the proxy server for the Origin Cluster is designed to
handle many streams. To address the issue of many viewers, we will
enhance the Edge Cluster to support more protocols.

```text
+------------------+                                               +--------------------+
+ SRS Edge Server  +--+                                    +-------+ SRS Origin Server  +
+------------------+  +                                    +       +--------------------+
                      +                                    +
+------------------+  +     +-----------------------+      +       +--------------------+
+ SRS Edge Server  +--+-----+ SRS Proxy(Deployment) +------+-------+ SRS Origin Server  +
+------------------+  +     +-----------------------+      +       +--------------------+
                      +                                    +
+------------------+  +                                    +       +--------------------+
+ SRS Edge Server  +--+                                    +-------+ SRS Origin Server  +
+------------------+                                               +--------------------+
```

With the new Origin Cluster and Edge Cluster, you have a media system
capable of supporting a large number of streams and viewers. For
example, you can publish 10,000 streams, each with 100,000 viewers.

---------

Co-authored-by: Jacob Su <suzp1984@gmail.com>
5 months ago
..
clion-ingest.conf STAT: Refine tcUrl for SRT/RTC. v5.0.54 2 years ago
clion-srt.conf STAT: Refine tcUrl for SRT/RTC. v5.0.54 2 years ago
clion.conf STAT: Refine tcUrl for SRT/RTC. v5.0.54 2 years ago
compatible.conf for #319, support raw update global.listen 10 years ago
console.conf API: Refine stat and config for prometheus exporter. 2 years ago
console.ipv46.conf RTMP: Add conf for listen at IPv6. 3 years ago
dash.conf DASH: Fix number mode bug to make it run. v5.0.96 (#3240) 2 years ago
demo.19350.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
demo.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
docker.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
dvr.mp4.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
dvr.path.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
dvr.segment.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
dvr.session.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
edge.conf Merge 4.0release, migrate to new website. 3 years ago
edge.token.traverse.conf Refine config directive token parsing. v6.0.135 (#4042) 7 months ago
edge2.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
exec.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
ffmpeg.transcode.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
force.daemon.conf For #3216: Support force daemon for sanitizer. 2 years ago
forward.backend.conf Merge 4.0release, migrate to new website. 3 years ago
forward.master.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
forward.slave.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
full.conf Heartbeat: Report ports for proxy server. v5.0.215 v6.0.156 v7.0.15 (#4171) 5 months ago
gb28181-without-sip.conf GB28181: Support external SIP server. v6.0.144 (#4101) 6 months ago
gb28181.conf GB28181: Fix bug for parsing GB to RTC. 2 years ago
go-oryx-edge.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
go-oryx-edge2.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
hds.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
hevc.flv.conf WebRTC: Support configure CANDIDATE by env (#3470) 2 years ago
hevc.ts.conf WebRTC: Support configure CANDIDATE by env (#3470) 2 years ago
hls.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
hls.edge.conf Conf: Refine comments. 3 years ago
hls.origin.conf Solve the problem of inaccurate HLS TS duration. v5.0.187 v6.0.87 (#3824) 1 year ago
hls.realtime.conf Solve the problem of inaccurate HLS TS duration. v5.0.187 v6.0.87 (#3824) 1 year ago
http.aac.live.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.api.auth.conf Support composited bridges for 1:N protocols converting. v6.0.41 (#3392) 2 years ago
http.api.dedicated.conf Fix #2881: HTTP: Support merging api to server. v5.0.47 2 years ago
http.api.one.port.conf HTTP: Support API with body, for RTC. 2 years ago
http.api.one.port2.conf HTTP: Support API with body, for RTC. 2 years ago
http.api.raw.conf Squash: Merge SRS 4.0 3 years ago
http.flv.live.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.flv.live.edge1.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.flv.live.edge2.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.heartbeat.conf Refine config directive token parsing. v6.0.135 (#4042) 7 months ago
http.hls.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.hooks.callback.conf Hooks: Remove on_connect and on_close from doc. 2 years ago
http.mp3.live.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
http.server.conf merge from srs2, fix #503 8 years ago
http.ts.live.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
https.docker.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
https.flv.live.conf For #1657, add https configs 4 years ago
https.hls.conf For #1657, add https configs 4 years ago
https.hooks.callback.conf Hooks: Remove on_connect and on_close from doc. 2 years ago
https.rtc.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
https.rtmp2rtc.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
https.srs.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
include.conf Update the demo config file for include directive (#2927) 3 years ago
include.vhost.conf Update the demo config file for include directive (#2927) 3 years ago
ingest.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
ingest.rtsp.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
live.conf Squash: Merge SRS 4.0 3 years ago
log-file.conf Merge 4.0release, migrate to new website. 3 years ago
mp3.conf MP3: Add config examples for MP3. #296 2 years ago
mp3.http.conf MP3: Add config examples for MP3. #296 2 years ago
mp3.rtc.conf SRS5: MP3: Convert RTMP(MP3) to WebRTC(OPUS). v5.0.118 (#296) (#3340) 2 years ago
mp3.ts.conf MP3: Add config examples for MP3. #296 2 years ago
nginx.proxy.conf Conf: Refine comments. 3 years ago
openwrt.conf OpenWRT: Try to create dir for pidfile 3 years ago
origin.cluster.edge.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
origin.cluster.serverA.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
origin.cluster.serverB.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
origin.cluster.serverC.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
origin.conf Merge 4.0release, migrate to new website. 3 years ago
origin.hls.only1.conf Support crossbuild for hisiv500. v5.0.40 3 years ago
origin.hls.only2.conf Support crossbuild for hisiv500. v5.0.40 3 years ago
origin1-for-proxy.conf Proxy: Support proxy server for SRS. v7.0.16 (#4158) 5 months ago
origin2-for-proxy.conf Proxy: Support proxy server for SRS. v7.0.16 (#4158) 5 months ago
origin3-for-proxy.conf Proxy: Support proxy server for SRS. v7.0.16 (#4158) 5 months ago
prometheus.conf Exporter: Listen at port 9972 for Prometheus exporter. (#3195) 2 years ago
push.flv.conf GB28181: Fix bug for parsing GB to RTC. 2 years ago
push.gb28181.conf SRS5: GB: Compatible with deprecated config. 2 years ago
push.mpegts.over.udp.conf GB28181: Fix bug for parsing GB to RTC. 2 years ago
realtime.conf WebRTC: Support configure CANDIDATE by env (#3470) 2 years ago
realtime.flv.conf WebRTC: Support configure CANDIDATE by env (#3470) 2 years ago
regression-test-for-clion.conf GB28181: Enable regression test for gb28181. v5.0.122 2 years ago
regression-test.conf GB28181: Enable regression test for gb28181. v5.0.122 2 years ago
rtc.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
rtc.tcp.only.conf RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 v6.0.95 (#3845) 1 year ago
rtc.tcp.udp.conf RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 v6.0.95 (#3845) 1 year ago
rtc2rtmp.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
rtmp.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
rtmp.kickoff.conf Kickoff publisher when stream is idle, which means no players. v6.0.31, v5.0.144 (#3105) 2 years ago
rtmp2rtc.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago
security.deny.publish.conf Fix RBSP issue, where 0x03 should be removed. v5.0.178 v6.0.75 (#3597) 1 year ago
server.crt For #1657, Support HTTPS API 4 years ago
server.key For #1657, Support HTTPS API 4 years ago
srs.conf For #3236: Live: Change gop cache limits to 2500. v5.0.94 (#3273) 2 years ago
srt.conf SRT: remove rtmp_to_srt 3 years ago
srt2rtc.conf SRT: Reduce latency to 200ms of srt2rtc.conf (#3409) 2 years ago
srt2ts.conf Improve README and documents with AI. v5.0.153. v6.0.43 (#3538) 2 years ago
transcode2hls.audio.only.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
transform.edge.conf Ingest: Still use -re for stream to ingest HLS better. 2 years ago
vm.conf Docs: Migrate to ossrs.net and ossrs.io 3 years ago