3 ms·
I generally love it but had some weird bug a month or two ago where something in the distro (AWS Linux 2) added a log trimmer config for squid that made systemd
by lanstin 5y ago
I generally love it but had some weird bug a month or two ago where something in the distro (AWS Linux 2) added a log trimmer config for squid that made systemd restart the squids, not reload but restart, every thirty minutes, on all the hosts, so all the clients got connection reset every thirty minutes. The signals to restart came from PID 1 but the fix was commenting out the log trimmer config for squid. Hard to debug - turning high level of debugging on and PID 1 logged restarting the squid but not why.
- spinax 5y ago> added a log trimmer config for squid I feel your pain - I'm curious, was it a drop-in /etc/logrotate.d/ config which was sending a HUP? I don't run squid but Google'd up that it will take a USR1 to rotate logs which should not close the HTTP connections (allegedly HUP closes them). Perhaps the AL2 folks chose the wrong signal? https://wiki.squid-cache.org/SquidFaq/InstallingSquid#squid_command_line_options https://wiki.squid-cache.org/SquidFaq/InstallingSquid#squid_...
- lanstin 5y agoRoot causing it is on my todo. For now I just commented the config in my user-data.sh
- lanstin 5y agoBut systemd itself was setting the squid service into stop then start. I don’t think by that time systemd knew the reason was to do with logs.
- WesolyKubeczek 5y agoI'm wondering if this new config made squid exceed any limits, causing it to hard stop. I'd expect the log trimmer to have/cause a bug in squid itself.
- lanstin 5y agoIt was sharply at :00 and :30 so I think it was time based and not reality based.