-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] dynamically load pmon daemons #2654
Merged
Merged
Conversation
This file contains 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
jleveque
reviewed
Mar 7, 2019
jleveque
approved these changes
Mar 8, 2019
retest this please |
@lguohan could you please review? |
Please update the porting guide. |
sure. |
porting guide updated. |
8 tasks
qiluo-msft
pushed a commit
that referenced
this pull request
Feb 9, 2023
``` 39cdb49c7 [202012][show] Add bgpraw to show run all (#2639) b3ebba2ca [202012][show] add new CLI to show tunnel route objects #2255 (#2659) d08f59b9f Fixed a bug in "show vnet routes all" causing screen overrun. (#2644) (#2654) a996abdb5 [202012][show] show logging CLI support for logs stored in tmpfs (#2652) c60f771c0 [202012][show_bfd] add local discriminator in show bfd command (#2616) ```
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.
- What I did
Make the pmon container daemons(ledd, xcvrd, psud) can be selectively loaded according to the platform configuration.
Add a pmon daemon control configuration file to all Mellanox platform to skip load ledd on all of them.
design doc in this link: https://github.com/Azure/SONiC/blob/master/doc/pmon/pmon-enhancement-design.md#4-pmon-daemons-dynamically-loading
- How I did it
Change the pmon container starting entry from "start.sh" to "docker_init.sh", in this new script will generate "supervisord.conf" and "start.sh" according to the platform configuration file, if this configuration file not exist, it will generate a config and start.sh for starting all the daemons.
Add jinja templates for supervisord.conf and start.sh generation.
Add pmon daemon control configuration file to Mellaox platform to skip ledd and also as an example.
- How to verify it
compile a pmon docker image and test it with a configuration file, to check whether the started daemons inside pmon is as expected.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)