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

Slow query from LLD worker

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 6.0.19rc1, 6.4.4rc1
    • Proxy (P), Server (S)
    • None
    • RHEl8
      Database hardware:
      - 64 cores
      - 512GB of RAM
      - PostgreSQL 15.3
      - TimescaleDB 2.10.3
      - all-flash array
      - Zabbix 6.2
    • Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
    • 1

      Steps to reproduce:
      Create discovery rule from the master SNMP item having 5 item prototypes, start monitor about 1000 hosts with this template, get 100% busy LLD workers.

       item_discovery             | 26 GB          |      28250169344
       item_tag                   | 11 GB          |      11745476608
      

      Result:

      3691797:20230622:152622.129 query [txnlev:0] [select ip.item_parameterid,ip.itemid,ip.name,ip.value from item_discovery id join item_parameter ip on id.itemid=ip.itemid where id.parent_itemid in (9541102,9541103,9541104)]
      3691797:20230622:152622.130 query [txnlev:0] [select it.itemtagid,it.itemid,it.tag,it.value from item_discovery id join item_tag it on id.itemid=it.itemid where id.parent_itemid in (9541102,9541103,9541104)]
      3691797:20230622:152628.856 slow query: 6.726439 sec, "select it.itemtagid,it.itemid,it.tag,it.value from item_discovery id join item_tag it on id.itemid=it.itemid where id.parent_itemid in (9541102,9541103,9541104)"
      3691797:20230622:152628.857 End of lld_items_get()
      3691797:20230622:152628.857 In lld_items_make()
      

      Expected:
      Fast query execution.

        1. zabbix-server-mysql_6.4.6-0.ZBX23012+debian12_amd64.deb
          1.77 MB
          Edgar Akhmetshin
        2. zabbix-server-pgsql_6.4.6-0.ZBX23012+debian12_amd64.deb
          1.78 MB
          Edgar Akhmetshin
        3. zabbix-server-mysql_6.4.6-0.ZBX23012+ubuntu22.04_amd64.deb
          1.40 MB
          Edgar Akhmetshin
        4. zabbix-server-pgsql_6.4.6-0.ZBX23012+ubuntu22.04_amd64.deb
          1.40 MB
          Edgar Akhmetshin
        5. zabbix-server-mysql-6.4.6-0.ZBX23012.el9.x86_64.rpm
          1.94 MB
          Edgar Akhmetshin
        6. zabbix-server-pgsql-6.4.6-0.ZBX23012.el9.x86_64.rpm
          1.94 MB
          Edgar Akhmetshin
        7. zabbix-server-mysql-6.4.6-0.ZBX23012.el8.x86_64.rpm
          1.85 MB
          Edgar Akhmetshin
        8. zabbix-server-pgsql-6.4.6-0.ZBX23012.el8.x86_64.rpm
          1.85 MB
          Edgar Akhmetshin
        9. zbx_23012_6_4-1.patch
          16 kB
          Konstantins Prutkovs
        10. zbx_23012_6_4.patch
          16 kB
          Konstantins Prutkovs
        11. zabbix-agent-6.2.9-0.ZBX23012.1.el8.x86_64.rpm
          544 kB
          Konstantins Prutkovs
        12. zabbix-proxy-pgsql-6.2.9-0.ZBX23012.1.el8.x86_64.rpm
          1.44 MB
          Konstantins Prutkovs
        13. zabbix-server-pgsql-6.2.9-0.ZBX23012.1.el8.x86_64.rpm
          1.78 MB
          Konstantins Prutkovs
        14. zabbix-sql-scripts-6.2.9-0.ZBX23012.1.el8.noarch.rpm
          7.28 MB
          Konstantins Prutkovs
        15. postgresql.conf
          0.7 kB
          Maksym Buz
        16. Screenshot 2023-06-22 at 20.10.29.png
          138 kB
          Edgar Akhmetshin
        17. Screenshot 2023-06-22 at 17.15.44.png
          528 kB
          Edgar Akhmetshin

            kprutkovs Konstantins Prutkovs
            edgar.akhmetshin Edgar Akhmetshin
            Team C
            Votes:
            2 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: