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

For #464, support config origin cluster

This commit is contained in:
winlin 2018-02-16 10:31:19 +08:00
parent 55c96192e2
commit 92f2bcd878
3 changed files with 42 additions and 6 deletions

View file

@ -365,10 +365,16 @@ vhost cluster.srs.com {
# default: on
debug_srs_upnode on;
# For origin(mode local) cluster, turn on the cluster.
# default: off
# TODO: FIXME: Support reload.
origin_cluster off;
# For origin (mode local) cluster, the co-worker's HTTP APIs.
# This origin will connect to co-workers and communicate with them.
# please read: https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster
coworkers 127.0.0.1:9091 127.0.0.1:9092;
# TODO: FIXME: Support reload.
coworkers 127.0.0.1:9091 127.0.0.1:9092;
}
}
@ -1798,8 +1804,9 @@ http_api {
}
vhost a.origin.cluster.srs.com {
cluster {
mode local;
coworkers 127.0.0.1:9091;
mode local;
origin_cluster on;
coworkers 127.0.0.1:9091;
}
}
@ -1809,7 +1816,8 @@ http_api {
}
vhost b.origin.cluster.srs.com {
cluster {
mode local;
coworkers 127.0.0.1:9090;
mode local;
origin_cluster on;
coworkers 127.0.0.1:9090;
}
}