1
0
Fork 0
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:
winlin 2018-02-16 16:39:07 +08:00
parent 2f09ec4353
commit c70421e656
13 changed files with 171 additions and 39 deletions

View file

@ -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;

View 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;
}
}

View file

@ -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;
}
}

View file

@ -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;
}
}