[ZBX-19870] Add "After=pgbouncer.service" in systemd files for Zabbix Server and Proxy Created: 2021 Aug 27 Updated: 2022 Apr 04 |
|
Status: | Confirmed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Packages (C), Proxy (P), Server (S) |
Affects Version/s: | 5.4.3 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Marcel Renner | Assignee: | Zabbix Development Team |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux 5.3.18-59.19-default #1 SMP Tue Aug 3 14:11:23 UTC 2021 (055c4fd) x86_64 x86_64 x86_64 GNU/Linux |
Attachments: |
![]() |
||||||||
Issue Links: |
|
Description |
Steps to reproduce:
Result:
A Stop Job is Running for Zabbix Server
A Stop Job is Running for Zabbix Proxy
Expected:
Workaround: Add an override for Zabbix server or proxy.
systemctl edit zabbix-server.service systemctl edit zabbix-proxy.service Add following configuration.
[Unit] After=pgbouncer.service Reload systemd. systemctl daemon-reload
|
Comments |
Comment by Aleksandrs Petrovs-Gavrilovs [ 2021 Aug 30 ] |
Hello, Thank you for your request, would it be possible to attach zabbix server logs, of course with sensitive data omitted? Best Regards, |
Comment by Marcel Renner [ 2021 Aug 30 ] |
Hi Aleksandrs, Yes, so we actually use PgBouncer everywhere to be able to use the advantages of transaction pooling. Due to a shutdown and missing service dependency, however, PgBouncer is terminated beforehand. The Zabbix Server/Proxy Service does not crash, but tries to establish a connection again. On a proxy, it looks like this. It's actually not a direct error in Zabbix, in my opinion. It's just that since PostgreSQL doesn't really do pooling and you have to fall back on 3rd party applications, it would be nice if this constellation was also taken into account. A note in the documentation for this override workaround would perhaps also be more than sufficient for other users. Best regards, Marcel |
Comment by Aleksandrs Petrovs-Gavrilovs [ 2021 Aug 31 ] |
Thank you for the update, I see similar issue was addressed previously with the approach you proposed and service files were updated ( Best Regards, |
Comment by Renato Custodio Borges [ 2022 Apr 04 ] |
Boa tarde no meu caso resolveu meu problema, mais ainda não sei a performance corretamente. |