sonic-buildimage/src/system-health
Junchao-Mellanox d82eafd8ae
[system-health] Fix file handle leak (#10059)
- Why I did it
swsscommon.ConfigDBConnector does not automatically close connection when the instance is recycled by python. So, it should not create this instance each time calling check_services. It will cause error like Failed to read from file /var/run/hw-management/led/led_status_capability - OSError(24, 'Too many open files')

- How I did it
Only connect DB once in init

- How to verify it
Manual test
2022-02-24 11:29:59 +02:00
..
health_checker [system-health] Fix file handle leak (#10059) 2022-02-24 11:29:59 +02:00
scripts Make system health service start early (#9792) 2022-01-27 13:46:52 +02:00
tests Make system health service start early (#9792) 2022-01-27 13:46:52 +02:00
.gitignore [system-health] Update .gitignore file (#5688) 2020-10-22 11:58:27 -07:00
pytest.ini [system-health] Add support for monitoring system health (#4835) 2020-10-12 11:12:49 +03:00
setup.cfg [system-health] Add support for monitoring system health (#4835) 2020-10-12 11:12:49 +03:00
setup.py [system-health] No longer check critical process/service status via monit (#9068) 2021-11-23 15:47:48 -08:00