Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25009

Slow configuration sync performance due to items table re-reading

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.0.4rc1, 7.2.0alpha1
    • 7.0.1, 7.0.2
    • Server (S)
    • None
    • S24-W34/35
    • 1

      Following query is redundant and is performed every 10 seconds without using changelog which leads to IO every 10 seconds on installations with limited resources:

      select i.itemid,i.hostid,i.templateid from items i inner join hosts h on i.hostid=h.hostid where h.status=3;
      

      Also this query is redundant and slow down configuration sync:

      select i.itemid,i.hostid,i.templateid from items i where i.flags=2
      

      Item tables is already retrieved later with changelog, so there is no need to read this data in separate queries specially with table that can be so large.

            vso Vladislavs Sokurenko
            vso Vladislavs Sokurenko
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: