MoQ stats gauge correction#209
Conversation
akash-a-n
left a comment
There was a problem hiding this comment.
I have removed a bunch of namespace gauges that were inaccurately tracking the number of active publishNamespace and subscribeNamespace messages.
I have fixed a double decrement bug for pubActiveSubscribers -- (number of subscribers when session is a publisher)
I have fixed the non-decrementing issue with subActivePublishers -- (number of publishers when session is a subscriber)
@akash-a-n made 1 comment.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, peterchave, suhasHere, and TimEvens).
|
how does this PR relate to: openmoq/moxygen#148 independent? |
akash-a-n
left a comment
There was a problem hiding this comment.
The third fix - for subActivePublishers needed changes in in both the layers moqx relay and in the underlying moxygen. #148 corresponds to the underlying change.
@akash-a-n made 1 comment.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, peterchave, suhasHere, and TimEvens).
|
Has a fix for moqx_quicActiveStreams been looked at? |
peterchave
left a comment
There was a problem hiding this comment.
@peterchave reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
akash-a-n
left a comment
There was a problem hiding this comment.
I'll take a look at moqx_quicActiveStreams
@akash-a-n made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
akash-a-n
left a comment
There was a problem hiding this comment.
Fixed it in #256
@akash-a-n made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
|
@akash-a-n I rebased/force-pushed this for you. Claude noticed: Potential bug — onSubscribeError decrements without a prior increment: onSubscribeSuccess and onSubscribeError are mutually exclusive terminal outcomes of a SUBSCRIBE. If a subscribe -- Potential double-decrement: Both onUnsubscribe and onPublishDone in SubscriberCallback decrement This sounds strange - pretty sure moxygen doesn't fire publshDone after the app unsubscribes |
d1a27d3 to
d90c707
Compare
akash-a-n
left a comment
There was a problem hiding this comment.
I have update the code to use the new callbacks added to moxygen for tracking subscription begin and subscription end.
Tested it out with conformance script. I see all gauges fall back to 0 -- no leaks.
@akash-a-n made 1 comment.
Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on afrind, gmarzot, michalhosna, mondain, Oxyd, peterchave, suhasHere, and TimEvens).
afrind
left a comment
There was a problem hiding this comment.
@afrind reviewed 3 files and all commit messages, and made 2 comments.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
src/stats/MoQStatsCollector.cpp line 108 at r3 (raw file):
void MoQStatsCollector::PublisherCallback::onPublishNamespaceSuccess() { ++parent_.pubPublishNamespaceSuccess_; ++parent_.pubActivePublishNamespaces_;
Why did we decide to drop these gauges? Is the intent to add them back later, or have downstream systems compute them?
src/stats/MoQStatsCollector.cpp line 145 at r3 (raw file):
void MoQStatsCollector::PublisherCallback::onUnsubscribe() { // Downstream subscriber unsubscribed.
We may want to count the number of unsubscribe's received regardless
2. correctly tracks the number of active publishers update: uses the new callbacks - onSubscriptionBegin and onSubscriptionEnd to track active publishers 3. Added two new metrics to count unsubscribe messages
d90c707 to
47058fd
Compare
akash-a-n
left a comment
There was a problem hiding this comment.
@akash-a-n made 2 comments.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
src/stats/MoQStatsCollector.cpp line 108 at r3 (raw file):
Previously, afrind wrote…
Why did we decide to drop these gauges? Is the intent to add them back later, or have downstream systems compute them?
These gauges seemed redundant. They have a direct correlation with their counters.
src/stats/MoQStatsCollector.cpp line 145 at r3 (raw file):
Previously, afrind wrote…
We may want to count the number of unsubscribe's received regardless
Sure, added two new metrics to count unsubscribe messages.
afrind
left a comment
There was a problem hiding this comment.
@afrind reviewed 2 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on gmarzot, michalhosna, mondain, Oxyd, suhasHere, and TimEvens).
removed unnecessary stats
correctly tracks the number of active publishers
This change is