HLD for orchagent notifications queue policy#2334
Open
senthil-nexthop wants to merge 1 commit into
Open
Conversation
Collaborator
|
/azp run |
|
No pipelines are associated with this pull request. |
e91f65d to
492c78c
Compare
Collaborator
|
/azp run |
|
No pipelines are associated with this pull request. |
492c78c to
949d79d
Compare
Collaborator
|
/azp run |
|
No pipelines are associated with this pull request. |
949d79d to
ee9d71f
Compare
Collaborator
|
/azp run |
|
No pipelines are associated with this pull request. |
Contributor
|
@senthil-nexthop Can you please make sure that the link dampening feature is not affected by this feature? #1071 @prsunny FYI |
This was referenced May 19, 2026
Author
Having looked at the link dampening feature closely, the consumer queue policy proposed in this HLD is not affected by the dampening feature. The link dampening happens at the producer side but the proposed changes are in the consumer side. I switched PortsOrch to use the LruDedup policy as well based on this determination. |
This was referenced May 23, 2026
Signed-off-by: Senthil Krishnamurthy <senthil@nexthop.ai>
ee9d71f to
0671b0a
Compare
Collaborator
|
/azp run |
|
No pipelines are associated with this pull request. |
Author
|
@dgsudharsan @prsunny I addressed some of your comments. Could you please add yourself as reviewers and take another look? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
swss::NotificationConsumer(Phase 1 of the FDB-flap mitigation work).NotificationQueueBasestrategy interface with two concrete policies:FifoNotificationQueue(default, unchanged behavior) andLruDedupNotificationQueue(opt-in; collapses byte-identical payloads on enqueue, bounding queue depth at the universe of distinct payloads).FdbOrch::m_fdbNotificationConsumer,PortsOrch::m_portStatusNotificationConsumer, PortsOrch::m_portHostTxReadyNotificationConsumer. All other NotificationConsumer callers are unchanged.Why
NotificationConsumer::m_queueis an unbounded std::queuestd::string. Under sustained FDB-flap or link-flap storms, the producer rate exceeds the consumer drain rate and the queue grows without limit, OOM-killing orchagent.** Related PRs **