Slow Queries - Duplicate key value breaks unique constraint

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0 (plan)
    • Component/s: None
    • None
    • Environment:
      Zabbix 7.0 - Rocky 9 - PostgreSQL 16

      Hello,

      Since I migrate my database from PGSQL13 to PGSQL16 (and from Debian 11 to Rocky 9), I got some slow queries on my Zabbix server logs. They are followed by a complete freeze of my Zabbix server that is unable to collect data (interruption time is random between 5 to 30min).

      On my DB server "Duplicate key value breaks unique constraint" on 'history_pkey' and 'history_uint_pkey' tables like you can see in attached picture.

      In Zabbix server logs there is nothing except this (that you can see in the other attached picture.) :
      "Got signal [signal:15(SIGTERM),sender_pid:10090,sender_uid:0,reason:0]. Exiting ..."

      I tried to clean all history and trend tables but it keeps happening every hour.
      I tried to disable housekeeping, so I don't think it's linked. I can't find the problem source.

       

        1. image-2023-12-12-16-32-24-242.png
          94 kB
          Bruno DE BASTIANI
        2. image-2023-12-13-12-24-43-947.png
          129 kB
          Bruno DE BASTIANI

            Assignee:
            Zabbix Support Team
            Reporter:
            Bruno DE BASTIANI
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: