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

Zabbix Server config cache might not work, because still lots of IO opening zabbix_server.conf

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 4.0.11
    • Server (S)
    • None
    • Centos 7

      Steps to reproduce:

      1. From Zabbix ManualĀ https://www.zabbix.com/documentation/4.0/manual/concepts/server
      2. we know, that Zabbix server has an option:
      3. config_cache_reload Reload configuration cache. Ignored if cache is being currently loaded.
      1. which is there, because Zabbix Server supposed to not automatically load configuration during operation.
      2. By taking into account this, it is supposed that Zabbix Server reads config file once during service start and zabbix process spawn.
      3. I am wondering why Zabbix Server still opens zabbix_server.conf file more than 1000 times in a minute (in my setup ~200 NVPS and 225 zabbix processes).
      4. Shouldn't it load config file only once and cache it in memory to reduce unnecessary IO requests ?

      Result:

      # inotifywatch -t 60 -r -e OPEN -d OPEN /zabbix/
      Establishing watches...
      Finished establishing watches, now collecting statistics.
      total open filename
      1104 1104 /zabbix/share/zabbix/externalscripts/
      1091 1091 /zabbix/etc/
      12 12 /zabbix/share/zabbix/systemscripts/
      
      [root@zbx-srv-vip ~]# inotifywait --timefmt "%d.%m%Y %H:%M:%S" --format "%T proc %f OPEN file %w" -m -r -e OPEN /zabbix/ | grep zabbix_server.conf
      Setting up watches. Beware: since -r was given, this may take a while!
      Watches established.
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:31 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:32 proc zabbix_server.conf OPEN file /zabbix/etc/
      11.092019 15:47:32 proc zabbix_server.conf OPEN file /zabbix/etc/
      

      Expected:
      See screenshot....
      See attached patch file...

            mbuhholcs DaneT
            vaku Vadims Kurmis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: