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

Broadcast Rate Events for MAPs and SPATs that stop being broadcasted #87

Merged
merged 7 commits into from
May 22, 2024

Conversation

iyourshaw
Copy link
Collaborator

Adds the ability to detect broadcast rates of 0, for example for RSUs that go offline that had previously been broadcasting MAPs and SPATs.

The existing Broadcast Rate Topologies count events in a window based on stream time to detect high or low rates, but do not work when there are no events coming in.

This PR adds MapZeroRateChecker and SpatZeroRateChecker processors to the MAP and SPaT validation topologies that work by storing the latest timestamp for each RsuIntersectionKey received, and using a wall-clock time triggered punctuator to emit a BroadcastRateEvent for any key whose last timestamp is older than the current time by more than the rolling window period (default 10 seconds). The events are emitted at the configured output interval, which defaults to every 5 seconds, and continue being sent as long as the zero-broadcast-rate condition persists.

@iyourshaw iyourshaw requested a review from John-Wiens May 21, 2024 03:50
@John-Wiens John-Wiens merged commit 121c951 into develop May 22, 2024
3 checks passed
@John-Wiens John-Wiens deleted the broadcast-rate-zero branch May 22, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants