2017-05-08 17:43:31 -05:00
|
|
|
[supervisord]
|
|
|
|
logfile_maxbytes=1MB
|
|
|
|
logfile_backups=2
|
|
|
|
nodaemon=true
|
|
|
|
|
2020-05-15 20:00:47 -05:00
|
|
|
[eventlistener:dependent-startup]
|
|
|
|
command=python -m supervisord_dependent_startup
|
|
|
|
autostart=true
|
|
|
|
autorestart=unexpected
|
|
|
|
startretries=0
|
|
|
|
exitcodes=0,3
|
|
|
|
events=PROCESS_STATE
|
[dockers][supervisor] Increase event buffer size for dependent-startup (#5247)
When stopping the swss, pmon or bgp containers, log messages like the following can be seen:
```
Aug 23 22:50:43.789760 sonic-dut INFO swss#supervisord 2020-08-23 22:50:10,061 ERRO pool dependent-startup event buffer overflowed, discarding event 34
Aug 23 22:50:43.789760 sonic-dut INFO swss#supervisord 2020-08-23 22:50:10,063 ERRO pool dependent-startup event buffer overflowed, discarding event 35
Aug 23 22:50:43.789760 sonic-dut INFO swss#supervisord 2020-08-23 22:50:10,064 ERRO pool dependent-startup event buffer overflowed, discarding event 36
Aug 23 22:50:43.789760 sonic-dut INFO swss#supervisord 2020-08-23 22:50:10,066 ERRO pool dependent-startup event buffer overflowed, discarding event 37
```
This is due to the number of programs in the container managed by supervisor, all generating events at the same time. The default event queue buffer size in supervisor is 10. This patch increases that value in all containers in order to eliminate these errors. As more programs are added to the containers, we may need to further adjust these values. I increased all buffer sizes to 25 except for containers with more programs or templated supervisor.conf files which allow for a variable number of programs. In these cases I increased the buffer size to 50. One final exception is the swss container, where the buffer fills up to ~50, so I increased this buffer to 100.
Resolves https://github.com/Azure/sonic-buildimage/issues/5241
2020-09-09 01:36:38 -05:00
|
|
|
buffer_size=100
|
2020-05-15 20:00:47 -05:00
|
|
|
|
2019-11-04 19:44:01 -06:00
|
|
|
[eventlistener:supervisor-proc-exit-listener]
|
2020-02-07 14:34:07 -06:00
|
|
|
command=/usr/bin/supervisor-proc-exit-listener --container-name pmon
|
2019-11-04 19:44:01 -06:00
|
|
|
events=PROCESS_STATE_EXITED
|
|
|
|
autostart=true
|
|
|
|
autorestart=unexpected
|
|
|
|
|
2020-05-15 20:00:47 -05:00
|
|
|
[program:rsyslogd]
|
|
|
|
command=/usr/sbin/rsyslogd -n -iNONE
|
2017-05-08 17:43:31 -05:00
|
|
|
priority=1
|
2020-05-15 20:00:47 -05:00
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2020-05-15 20:00:47 -05:00
|
|
|
[program:start]
|
|
|
|
command=/usr/bin/start.sh
|
2017-05-08 17:43:31 -05:00
|
|
|
priority=2
|
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-15 20:00:47 -05:00
|
|
|
startsecs=0
|
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=rsyslogd:running
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2020-05-15 20:00:47 -05:00
|
|
|
{% if not skip_sensors and HAVE_SENSORS_CONF == 1 %}
|
2017-05-08 17:43:31 -05:00
|
|
|
[program:lm-sensors]
|
|
|
|
command=/usr/bin/lm-sensors.sh
|
|
|
|
priority=3
|
|
|
|
autostart=false
|
2017-05-09 19:37:08 -05:00
|
|
|
autorestart=false
|
2017-05-08 17:43:31 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2017-08-15 12:38:22 -05:00
|
|
|
startsecs=0
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2020-04-28 20:39:10 -05:00
|
|
|
{% endif %}
|
2017-05-08 17:43:31 -05:00
|
|
|
|
2020-05-15 20:00:47 -05:00
|
|
|
{% if not skip_fancontrol and HAVE_FANCONTROL_CONF == 1 %}
|
2017-06-23 17:23:00 -05:00
|
|
|
[program:fancontrol]
|
|
|
|
command=/usr/sbin/fancontrol
|
|
|
|
priority=4
|
|
|
|
autostart=false
|
2020-03-19 19:24:22 -05:00
|
|
|
autorestart=unexpected
|
2017-06-23 17:23:00 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-03-19 19:24:22 -05:00
|
|
|
startsecs=10
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2020-04-28 20:39:10 -05:00
|
|
|
{% endif %}
|
2017-06-23 17:23:00 -05:00
|
|
|
|
2019-03-22 04:49:35 -05:00
|
|
|
{% if not skip_ledd %}
|
2017-06-11 00:05:11 -05:00
|
|
|
[program:ledd]
|
|
|
|
command=/usr/bin/ledd
|
2017-06-23 17:23:00 -05:00
|
|
|
priority=5
|
2017-06-11 00:05:11 -05:00
|
|
|
autostart=false
|
2018-05-10 03:20:22 -05:00
|
|
|
autorestart=false
|
2017-06-11 00:05:11 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2017-08-15 12:38:22 -05:00
|
|
|
startsecs=0
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2019-03-22 04:49:35 -05:00
|
|
|
{% endif %}
|
2018-08-03 18:33:56 -05:00
|
|
|
|
2019-03-22 04:49:35 -05:00
|
|
|
{% if not skip_xcvrd %}
|
2018-08-03 18:33:56 -05:00
|
|
|
[program:xcvrd]
|
|
|
|
command=/usr/bin/xcvrd
|
|
|
|
priority=6
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
|
|
|
startsecs=0
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2019-03-22 04:49:35 -05:00
|
|
|
{% endif %}
|
2019-01-15 23:24:47 -06:00
|
|
|
|
2019-03-22 04:49:35 -05:00
|
|
|
{% if not skip_psud %}
|
2019-01-15 23:24:47 -06:00
|
|
|
[program:psud]
|
|
|
|
command=/usr/bin/psud
|
|
|
|
priority=7
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
|
|
|
startsecs=0
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2019-03-22 04:49:35 -05:00
|
|
|
{% endif %}
|
2019-06-18 13:02:24 -05:00
|
|
|
|
|
|
|
{% if not skip_syseepromd %}
|
|
|
|
[program:syseepromd]
|
|
|
|
command=/usr/bin/syseepromd
|
|
|
|
priority=8
|
|
|
|
autostart=false
|
2020-04-30 17:51:34 -05:00
|
|
|
autorestart=unexpected
|
2019-06-18 13:02:24 -05:00
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-04-30 17:51:34 -05:00
|
|
|
startsecs=10
|
2020-05-15 20:00:47 -05:00
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2019-06-18 13:02:24 -05:00
|
|
|
{% endif %}
|
2020-06-08 13:20:43 -05:00
|
|
|
|
|
|
|
{% if not skip_thermalctld %}
|
|
|
|
[program:thermalctld]
|
|
|
|
command=/usr/bin/thermalctld
|
|
|
|
priority=9
|
|
|
|
autostart=false
|
|
|
|
autorestart=true
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
2020-05-15 20:00:47 -05:00
|
|
|
startsecs=10
|
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
2020-06-08 13:20:43 -05:00
|
|
|
{% endif %}
|