-
Incident report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
4.0.11
-
None
-
Centos 7
Steps to reproduce:
- From Zabbix ManualĀ https://www.zabbix.com/documentation/4.0/manual/concepts/server
- we know, that Zabbix server has an option:
config_cache_reload Reload configuration cache. Ignored if cache is being currently loaded.
- which is there, because Zabbix Server supposed to not automatically load configuration during operation.
- By taking into account this, it is supposed that Zabbix Server reads config file once during service start and zabbix process spawn.
- 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).
- 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...