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

[multi-asic] Cache connection handles to prevent duplicate #9636

Merged
merged 1 commit into from
Jan 7, 2022
Merged

[multi-asic] Cache connection handles to prevent duplicate #9636

merged 1 commit into from
Jan 7, 2022

Conversation

anamehra
Copy link
Contributor

Signed-off-by: anamehra anamehra@cisco.com

On a multi-asic Supervisor card, running commands like
'show interface counter' opens a confid_db connection per
namespace per interface which results in many duplicate connections
exceeding the allowed open file handles. This causes the command to fail.

Caching the connections to prevent duplicate handles.

Why I did it

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

   On a multi-asic Supervisor card, running commands like
   'show interface counter' opens a confid_db connection per
   namespace per interface which results in many duplicate connections
   exceeding the allowed open file handles. This causes the command to fail.

   Caching the connections to prevent duplicate handles.

Signed-off-by: anamehra <anamehra@cisco.com>
@anamehra anamehra requested a review from lguohan as a code owner December 23, 2021 01:49
@anamehra
Copy link
Contributor Author

@abdosi , please try this for 'show interface counter' issue on multi-asic Supervisor

@abdosi abdosi merged commit e5d5f80 into sonic-net:master Jan 7, 2022
@abdosi abdosi added Request for 202111 Branch For PRs being requested for 202111 branch Chassis for 202111 branch Chassis 🤖 Modular chassis support and removed Request for 202111 Branch For PRs being requested for 202111 branch labels Jan 7, 2022
judyjoseph pushed a commit that referenced this pull request Jan 9, 2022
On a multi-asic Supervisor card, running commands like
'show interface counter' opens a confid_db connection per
namespace per interface which results in many duplicate connections
exceeding the allowed open file handles. This causes the command to fail.

Caching the connections to prevent duplicate handles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants