News for hackers. Stuff that matters.
Re:Avoiding Complexity with Systemd by lanstin on Sunday June 27, 2021 @01:41PM (#27653507)
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.
Re:Avoiding Complexity with Systemd by spinax on Sunday June 27, 2021 @01:49PM (#27653573)
> 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_...

Re:Avoiding Complexity with Systemd by lanstin on Sunday June 27, 2021 @02:57PM (#27654194)
Root causing it is on my todo. For now I just commented the config in my user-data.sh
Re:Avoiding Complexity with Systemd by lanstin on Sunday June 27, 2021 @02:59PM (#27654215)
But 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.
Re:Avoiding Complexity with Systemd by WesolyKubeczek on Sunday June 27, 2021 @05:47PM (#27655765)
I'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.
Re:Avoiding Complexity with Systemd by lanstin on Tuesday June 29, 2021 @09:52PM (#27684026)
It was sharply at :00 and :30 so I think it was time based and not reality based.