Let oryx backend by srs origin cluster #229
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Make a single docker image that let Oryx backend by srs origin cluster.
@see https://ossrs.net/lts/en-us/docs/v7/doc/origin-cluster
How to make a docker image?
docker build -t [your repo]/oryx:[tag] -f Dockerfile.origin_cluster .
How to run this image by config the count of origin srs instances?
Config the SRS instance count by env
ORIGIN_SRS_NUMBER
, the default number is 2.e.g. Your docker container has capacity of 6 cpu cores, you want to run 4 SRS origin instances.
Let's assume your image name is
oryx:origin_cluster
, built from above step.docker run -it --rm --name oryx -p 80:2022 -p 443:2443 -p 1935:1935 -p 8000:8000/udp -p 10080:10080/udp -e ORIGIN_SRS_NUMBER=4 oryx:origin_cluster
TODO
Dockerfile.origin_cluster
:zpcat/srs-proxy
,zpcat/srs:7-dev
zpcat/srs-proxy
is the srs-proxy docker image, check ossrs/srs#4184zpcat/srs:7-dev
is build from latest srs source code, the official srs image need to update.