This is a translation of the original English documentation page. Help us make it better.
Table of Contents

11 値のキャッシュ

概要

トリガー式、計算 item 、一部のマクロの計算を高速化するために、Zabbix server では値キャッシュオプションが
サポートされています。

このインメモリキャッシュは、データベースに直接SQLを呼び出す代わりに、過去のデータへのアクセスに使用することができます。
過去の値がキャッシュに存在しない場合、不足分の値はデータベースから要求され、それに応じてキャッシュが更新されます。

値キャッシュ機能を有効にするために、オプションの ValueCacheSize パラメータが Zabbix server の
configuration ファイルでサポートされています。

値キャッシュを監視するために、2つの内部 item がサポートされています。zabbix[vcache,buffer,<mode>]
zabbix[vcache,cache,<parameter>] です。詳細は、internal itemsを参照してください。

Item values remain in value cache either until:

  • the item is deleted (cached values are deleted after the next configuration sync);
  • the item value is outside the time or count range specified in the trigger/calculated item expression (cached value is removed when a new value is received);
  • the time or count range specified in the trigger/calculated item expression is changed so that less data is required for calculation (unnecessary cached values are removed after 24 hours).

Value cache status can be observed by using the server runtime control option diaginfo (or diaginfo=valuecache) and inspecting the section for value cache diagnostic information. This can be useful for determining misconfigured triggers or calculated items.

To enable the value cache functionality, an optional ValueCacheSize parameter is supported by the Zabbix server configuration file.

Two internal items are supported for monitoring the value cache: zabbix[vcache,buffer,<mode>] and zabbix[vcache,cache,<parameter>]. See more details with internal items.