sonic-buildimage/platform
Joe LeVeque 5b3b4804ad
[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-08 23:36:38 -07:00
..
barefoot [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
broadcom [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
cavium [build]: wait for conflicts package to be uninstalled (#5039) 2020-07-27 10:46:20 -07:00
centec [centec]: Add centec arm64 architecture support for E530 (#4641) 2020-08-06 03:16:11 -07:00
centec-arm64 [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
generic [dockers] Rename 'docker-snmp-sv2' to 'docker-snmp' (#4699) 2020-06-11 16:04:23 -07:00
innovium [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
marvell [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
marvell-arm64 [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
marvell-armhf [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
mellanox [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
nephos [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00
p4 Add switch for synchronous mode (#5237) 2020-08-24 14:04:10 -07:00
template [docker-syncd-vs]: Convert syncd-vs docker to buster (#4726) 2020-06-09 09:07:25 -07:00
vs [dockers][supervisor] Increase event buffer size for dependent-startup (#5247) 2020-09-08 23:36:38 -07:00