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

Fix edgehub_queue_len counting #5730

Merged
merged 7 commits into from
Nov 10, 2021

Conversation

nyanzebra
Copy link
Contributor

@nyanzebra nyanzebra commented Oct 21, 2021

This is a cherry-pick of #5692

NOTE
Below are graphs with TTL 300; first is online burst and second is offline.. for some reason these look different than what I saw for #5731 (1.2) and guess the reason is due to message processing rates somehow being different... tested on a rpi so maybe resources were used more in one vs the other?
image

image

This fixes the count of eh_queue_len by using only the metrics as counters and not setting through other means. We will only increment on propose and decrement on commit. We initialize the count based on how many entries are in the queue from the checkpoint's offset. We still update the count whenever we cleanup the queue.

NOTE
Below graph is with TTL of 7200 seconds and the change in color is when edgeHub was restarted.
@nyanzebra nyanzebra marked this pull request as ready for review October 22, 2021 19:52
@vadim-kovalyov vadim-kovalyov changed the title Cherry pick of 5692 Fix edgehub_queue_len counting Oct 25, 2021
@nyanzebra
Copy link
Contributor Author

Just to show correct behavior on TTL

image

@kodiakhq kodiakhq bot merged commit 32fbcfe into Azure:release/1.1 Nov 10, 2021
@nyanzebra nyanzebra deleted the feature/cherry_pick_5692 branch November 10, 2021 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants