5b3b4804ad
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
144 lines
2.8 KiB
Django/Jinja
144 lines
2.8 KiB
Django/Jinja
[supervisord]
|
|
logfile_maxbytes=1MB
|
|
logfile_backups=2
|
|
nodaemon=true
|
|
|
|
[eventlistener:dependent-startup]
|
|
command=python -m supervisord_dependent_startup
|
|
autostart=true
|
|
autorestart=unexpected
|
|
startretries=0
|
|
exitcodes=0,3
|
|
events=PROCESS_STATE
|
|
buffer_size=100
|
|
|
|
[eventlistener:supervisor-proc-exit-listener]
|
|
command=/usr/bin/supervisor-proc-exit-listener --container-name pmon
|
|
events=PROCESS_STATE_EXITED
|
|
autostart=true
|
|
autorestart=unexpected
|
|
|
|
[program:rsyslogd]
|
|
command=/usr/sbin/rsyslogd -n -iNONE
|
|
priority=1
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
dependent_startup=true
|
|
|
|
[program:start]
|
|
command=/usr/bin/start.sh
|
|
priority=2
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=rsyslogd:running
|
|
|
|
{% if not skip_sensors and HAVE_SENSORS_CONF == 1 %}
|
|
[program:lm-sensors]
|
|
command=/usr/bin/lm-sensors.sh
|
|
priority=3
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_fancontrol and HAVE_FANCONTROL_CONF == 1 %}
|
|
[program:fancontrol]
|
|
command=/usr/sbin/fancontrol
|
|
priority=4
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_ledd %}
|
|
[program:ledd]
|
|
command=/usr/local/bin/ledd
|
|
priority=5
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_xcvrd %}
|
|
[program:xcvrd]
|
|
command=/usr/local/bin/xcvrd
|
|
priority=6
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_psud %}
|
|
[program:psud]
|
|
command=/usr/local/bin/psud
|
|
priority=7
|
|
autostart=false
|
|
autorestart=false
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=0
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_syseepromd %}
|
|
[program:syseepromd]
|
|
command=/usr/local/bin/syseepromd
|
|
priority=8
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_thermalctld %}
|
|
[program:thermalctld]
|
|
command=/usr/local/bin/thermalctld
|
|
priority=9
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|
|
|
|
{% if not skip_pcied %}
|
|
[program:pcied]
|
|
command=/usr/local/bin/pcied
|
|
priority=10
|
|
autostart=false
|
|
autorestart=unexpected
|
|
stdout_logfile=syslog
|
|
stderr_logfile=syslog
|
|
startsecs=10
|
|
dependent_startup=true
|
|
dependent_startup_wait_for=start:exited
|
|
{% endif %}
|