Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let oryx backend by srs origin cluster #229

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

suzp1984
Copy link
Contributor

@suzp1984 suzp1984 commented Nov 1, 2024

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

  • replace the images inside Dockerfile.origin_cluster: zpcat/srs-proxy, zpcat/srs:7-dev

zpcat/srs-proxy is the srs-proxy docker image, check ossrs/srs#4184
zpcat/srs:7-dev is build from latest srs source code, the official srs image need to update.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants