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

PMON enhancements for Chassis HLD #646

Merged
merged 18 commits into from
May 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/pmon/pmon-chassis-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ Thermal 5 59 68 0 N/A N/A
* Database connections per namespace - Database dockers run per namespace and PMON processes need to connect to each of these database instances.
* Update per namespace port status - The pmon processes will need to run per-asic specific functinality ina a separate thread.

Two approaches were discussed as part of design:
mprabhu-nokia marked this conversation as resolved.
Show resolved Hide resolved
* Approach 1 - Existing process and threads will connect/suscribe to all databases across per-asic namespace. This is the preferred approach and has been documented in https://github.com/Azure/SONiC/blob/master/doc/pmon/pmon_multiasic_design.md.
mprabhu-nokia marked this conversation as resolved.
Show resolved Hide resolved
* Approach 2 - Create separate threads per-asic and that thread will connect/subscribe to databases in per-asic namespace. Approach 2 is outlined below for the sake of completeness. However, it is not the preferred approach.
mprabhu-nokia marked this conversation as resolved.
Show resolved Hide resolved

#### Database Connections

Below is a code snippet to introduce a new API *db_unix_connect*. In src/sonic-daemon-base/sonic_daemon_base/daemon_base.py:
Expand Down