-
Notifications
You must be signed in to change notification settings - Fork 117
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
CPU Spike because of redundant and flooded keyspace notifis handled #230
Conversation
Signed-off-by: Vivek Reddy Karri <[email protected]>
@qiluo-msft, please review |
""" | ||
latest_update_map = {} | ||
while True: | ||
data, interface, if_index = poll_lldp_entry_updates(pubsub) |
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.
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.
Not sure if i understood your suggestion correctly, a keyspace notif doesn't contain any info about the fields changed. Eg: __keyspace@0__:mykey del
.
So, even if the lld_syncd logic was modified to send only one notif instead of mutiple. That'll be captured by this method. The actual logic of fetching the fv-pairs is in the downstream methods.
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.
Thanks for clarify. I see the flow is implemented inside this file, instead of using a library. Sorry for misleading.
Signed-off-by: Vivek Reddy Karri <[email protected]>
Request for 202106 |
…230) **- What I did** Fixes [#8293](sonic-net/sonic-buildimage#8293) **- How I did it** Accumulated all the older notifications and did act only upon the latest notification discarding the others
@qiluo-msft, Can you backport this to 202106? |
…230) **- What I did** Fixes [#8293](sonic-net/sonic-buildimage#8293) **- How I did it** Accumulated all the older notifications and did act only upon the latest notification discarding the others
Signed-off-by: Vivek Reddy Karri [email protected]
- What I did
Fixes #8293
- How I did it
Accumulated all the older notifications and did act only upon the latest notification discarding the others
- How to verify it
- Description for the changelog