This website requires JavaScript.
Explore
Help
Register
Sign In
matthew
/
sonic-buildimage
Watch
1
Star
0
Fork
0
You've already forked sonic-buildimage
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
f373a16e95
sonic-buildimage
/
platform
/
centec
/
docker-syncd-centec
/
critical_processes
2 lines
14 B
Plaintext
Raw
Normal View
History
Unescape
Escape
[dockers] Update critical_processes file syntax (#4831) **- Why I did it** Initially, the critical_processes file contains either the name of critical process or the name of group. For example, the critical_processes file in the dhcp_relay container contains a single group name `isc-dhcp-relay`. When testing the autorestart feature of each container, we need get all the critical processes and test whether a container can be restarted correctly if one of its critical processes is killed. However, it will be difficult to differentiate whether the names in the critical_processes file are the critical processes or group names. At the same time, changing the syntax in this file will separate the individual process from the groups and also makes it clear to the user. Right now the critical_processes file contains two different kind of entries. One is "program:xxx" which indicates a critical process. Another is "group:xxx" which indicates a group of critical processes managed by supervisord using the name "xxx". At the same time, I also updated the logic to parse the file critical_processes in supervisor-proc-event-listener script. **- How to verify it** We can first enable the autorestart feature of a specified container for example `dhcp_relay` by running the comman `sudo config container feature autorestart dhcp_relay enabled` on DUT. Then we can select a critical process from the command `docker top dhcp_relay` and use the command `sudo kill -SIGKILL <pid>` to kill that critical process. Final step is to check whether the container is restarted correctly or not.
2020-06-25 23:18:21 -05:00
program:syncd
Reference in New Issue
Copy Permalink