mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #464, support origin cluster
This commit is contained in:
parent
2f09ec4353
commit
c70421e656
13 changed files with 171 additions and 39 deletions
|
@ -366,6 +366,7 @@ vhost cluster.srs.com {
|
|||
debug_srs_upnode on;
|
||||
|
||||
# For origin(mode local) cluster, turn on the cluster.
|
||||
# @remark Origin cluster only supports RTMP, use Edge to transmux RTMP to FLV.
|
||||
# default: off
|
||||
# TODO: FIXME: Support reload.
|
||||
origin_cluster off;
|
||||
|
|
15
trunk/conf/origin.cluster.edge.conf
Normal file
15
trunk/conf/origin.cluster.edge.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
# the config for srs origin-edge cluster
|
||||
# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
pid objs/edge.pid;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
vhost __defaultVhost__ {
|
||||
cluster {
|
||||
mode remote;
|
||||
origin 127.0.0.1:19351;
|
||||
}
|
||||
}
|
|
@ -13,7 +13,8 @@ http_api {
|
|||
}
|
||||
vhost __defaultVhost__ {
|
||||
cluster {
|
||||
mode local;
|
||||
coworkers 127.0.0.1:9091;
|
||||
mode local;
|
||||
origin_cluster on;
|
||||
coworkers 127.0.0.1:9091;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@ http_api {
|
|||
}
|
||||
vhost __defaultVhost__ {
|
||||
cluster {
|
||||
mode local;
|
||||
coworkers 127.0.0.1:9090;
|
||||
mode local;
|
||||
origin_cluster on;
|
||||
coworkers 127.0.0.1:9090;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue