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

Slow LLD of hosts due to inefficient name comparison

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.0.1rc1, 7.2.0alpha1
    • None
    • Server (S)
    • None
    • S24-W22/23
    • 0.5

      When discovering hosts they are checked for duplicates by iterating through all hosts for each host, this is very inefficient and takes long time, hashes should be used instead.

      LLD for 100k hosts.

      Before (takes unreasonably long 715 seconds):
       1410257 85.1  1.1 328816 187932 pts/0   S+   13:42  11:39 ./sbin/zabbix_server: lld worker #1 [processed 1 LLD rules, idle 8.372470 sec during 715.515829 sec]

      After patch it is finished in reasonable 53 seconds:
      68.1  1.1 328800 187700 pts/0   S+   13:40   0:36 ./sbin/zabbix_server: lld worker #1 [processed 1 LLD rules, idle 9.348398 sec during 53.101660 sec]

        1. ZBX-24318-7.0.diff
          5 kB
          Vladislavs Sokurenko

            vso Vladislavs Sokurenko
            vso Vladislavs Sokurenko
            Team B
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0.25m
                0.25m
                Remaining:
                Remaining Estimate - 0.25m
                0.25m
                Logged:
                Time Spent - Not Specified
                Not Specified