Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add counters enabling redesign document #918
Add counters enabling redesign document #918
Changes from all commits
e700cfb
08d47b6
aee2041
5f09f5a
76c85de
56a3483
e140018
17ea4a7
c6e945e
987cb06
5ac47c4
21d9d14
826d16d
61857c1
1e5a5cd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Chances of race-condition here? What happens if counters enabling is in progress and the
SelectableTimer
is also triggered?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.
Also, after the enabling of counters, what happens to the new data structure defined in
FlexCountersOrch
?There can be two cases to be covered here - event-driven mechanism (new design) and timeout (old design).
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.
If counters enabling is in progress, it means the daemon first changed a boolean to True. so when the timer will expire, it will check the boolean and will not enable the counters as well.
The data structure will be in use only for the event-driven mechanism.
If we got to a point we need to enable the counters - we will enable the counters for all ports as it was in previous design.
Note: We are using the same behavior as in enable_counters.py script, but here we will trigger the counters enabling when all ports and LAGs are in their expected state.
If the system is not stable, we will do a fallback to the previous design - wait for the timer to expire.
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.
Please include a section for fast/cold/warm reboot and dynamic port breakout scenarios.