Actively sync SRS state #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current state for stream is passively tracked through connect/disconnect webhooks by SRS. If we miss a webhook for whatever reason, the state can become out of sync and need manual adjustment. This is a bit fragile.
Let's move over to actively scraping the SRS API for all nodes, and use that to keep track of streams.
Solution should scrape each SRS API in a short interval, and save the state ideally in-memory (e.g. using the available Redis KVS). Changes to the in-memory state should trigger re-evaluations of any configuration rules to spawn/remove Tasks.