-
Notifications
You must be signed in to change notification settings - Fork 167
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
cmd,server: Send stream health events to a metadata queue #1946
Conversation
e1f2d01
to
bcf9acc
Compare
5f9136c
to
2b6f269
Compare
bdf9c65
to
b104da0
Compare
b104da0
to
617fe10
Compare
05c14bf
to
cafd5d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more I think about this the more I think that we should probably be pushing an event for every transcode attempt and failure. It'll be good for the Stream Health service to be able to evaluate how things are performing in real-time, not only after multiple retries are happening. (Though there oughta be some sort of correlation ID so it can figure out which attempts go with which successes, I suppose.)
I'll leave review of the actual code structure here to @yondonfu and @jailuthra
It occurs to me that we'll probably want to develop this in conjunction with the service that consumes it — inevitably we'll want to make tweaks as everything comes together. So maybe we'll keep this branch open for a little bit if folks don't object. |
d03fe63
to
503ca09
Compare
- Include both orch eth address and transcoder URI - transcodeAttemptInfo as an out parameter of transcodeSegment - named returns+defer trick to avoid repetitions of time&error setting
- Remove defer from retry loop - Fix error field type on transcode info - Make transcode attempt info a ret-val instead of ptr Still keep the named-rets+defer logic though which I guess was the real deal
Put it all together ✨
The library closes that channel when the channel is closed as well, so we need to handle it in case that msg comes before the actual on closed channel.
Yeah weird, let me try rebasing to see if it works. Edit: Apparently it did 🤔 |
Final timestamp so it doesn`t need to be derived and byte size of segments.
Also add first character of manifest ID as separate topic segment
It's not really a queue per se, but it's just the easier way to refer and reason about it.
Co-authored-by: Yondon Fu <[email protected]>
Co-authored-by: Yondon Fu <[email protected]>
- Create the helper stubTestTranscoder to avoid repeating logic - Repeat the pattern on other tests to create a single rtmpConnection and just keep changing the sessManager on it instead. - Some additional guarantees in metadata queue tests
Co-authored-by: Yondon Fu <[email protected]>
bb3bce3
to
c262c3c
Compare
What does this pull request do? Explain your changes. (required)
This is the first step for implementing a stream health dashboard. The idea is
to send events about stream transcoding to an AMQP queue (exchange). This
queue will later be processed by another (go) service which will aggregate the
information so it can be displayed to the final user.
Specific updates (required)
In the order of the commits:
broadcaster.go
to gather transcode attempts information[1]
underserver/event
package[2]
[1]
In the ideal world, we would just use an existing library that handledall the protocol complexity, bur I couldn't find any other library with enough
developer activity to be safe enough to use.
[2]
Is it ok to create sub-packages like that, or should it all be underserver
? Ormaybe somewhere else and have
server
depend on it?How did you test each of these updates (required)
./test.sh
health code, as well as actually test the whole thing running.
Does this pull request close any open issues?
Implements #1939
Checklist:
make
runs successfully./test.sh
pass