-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
v3_CN_OriginCluster
winlin edited this page Mar 3, 2018
·
22 revisions
HOME > CN(3.0) > OriginCluster
关于源站集群的设计参考Issue#464.
Remark: 源站集群只支持RTMP协议,如果需要HTTP-FLV,可以加一个Edge将RTMP转成HTTP-FLV。
源站集群的配置如下:
vhost __defaultVhost__ {
# The config for cluster.
cluster {
# The cluster mode, local or remote.
# local: It's an origin server, serve streams itself.
# remote: It's an edge server, fetch or push stream to origin server.
# default: local
mode local;
# 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 on;
# 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_CN_OriginCluster
# TODO: FIXME: Support reload.
coworkers 127.0.0.1:9091 127.0.0.1:9092;
}
}
其中:
- mode: 集群的模式,对于源站集群,值应该是local。
- origin_cluster: 是否开启源站集群。
- coworkers: 源站集群中的其他源站。
源站集群的用法参考#464。
推荐在源站集群前面挂一系列的Edge服务器,参考这里,Edge服务器可以转换协议,支持RTMP和HTTP-FLV,同时支持源站故障时自动切换,不中断客户端。
2018.02
Welcome to SRS wiki!
Please select your language:
Please select your language:
Please select your language:
Please select your language:
Please select your language: