I'd like to add a flag to the image to only start the publishing process rather than standing servers up.
That way, it'll be possible to run multiple channels - one standard pod can be spun up, with some others started in publish only mode (pushing into the one running the server).
Pods in publish only mode won't be able to use dynamic publishing or the like
Activity
05-Aug-24 20:33
assigned to @btasker
05-Aug-24 20:36
The advantage of doing it this way, rather than allowing the pod to run several publishers, is that the load can be spread across nodes rather than having a single pod demand a large number of resources
06-Aug-24 07:20
Introducing a new env var:
CONTAINER_MODE
Values:
combined
(default)production
: only run the publisher processserver
: only run NginxWith this change, then it's possible to stand up a pod to act as a streaming server and then several pods to stream different channels in:
Pod 1 env vars
Assuming that TCP port 1935 on pod 1 is fronted by a service called
rtmp-service
, we'd then create publishers using something like:Pod 2 env vars
Pod 3 env vars
This would publish two streams
rtmp://[server]/mytv/one
rtmp://[server]/mytv/two
Both would also be available using HLS. However, it wouldn't be possible to:
next
apiThings like broadcast windows and the test card could still be used - the timings just need to be set in each pod.
06-Aug-24 08:00
mentioned in commit github-mirror/Home-TV-Station@1549f1cd20508d8db8c92f2353707688e9de0c3e
Message
feat: introduce ability to bring container in publisher or server only mode (project-management-only/home-tv-station#14)
06-Aug-24 08:00
mentioned in commit github-mirror/Home-TV-Station@472aab8d900bc32c98b4ac7cf6694d17eac3ccad
Message
docs: update README (project-management-only/home-tv-station#14)