Awselasticache-monitoring-node-metrics

提供:Dev Guides
移動先:案内検索

AWS ElastiCache-ノードメトリックスのモニタリング

クラスターの使用状況と正常性を監視するために、ElastiCacheはCloudWatchからアクセスできるメトリックを提供します。 これらのメトリックは、ホストレベルのメトリックにすることができます。 CPU使用率は、ホストレベルのメトリックの例です。 キャッシュエンジンソフトウェアに固有のメトリックもあります。 キャッシュ取得とキャッシュミスは、エンジン固有のメトリックの例です。 これらのメトリックは、60秒間隔で各キャッシュノードについて測定および公開されます。

ホストレベルのメトリック

ホストレベルのメトリックは、ElastiCacheノードが配置されているホストマシンのパフォーマンスのさまざまな側面を測定します。 以下は、いくつかの重要なホストレベルメトリックの例です。 また、異なるメトリックには異なるタイプの測定値があります。 1つのメトリックがパーセンテージとして測定され、もう1つのメトリックがカウント値として測定されるように。

Metric Description Unit
CPUUtilization The percentage of CPU utilization for the entire host. Because Redis is single-threaded, we recommend you monitor EngineCPUUtilization metric if available. Percent
FreeableMemory The amount of free memory available on the host. This is derived from the RAM, buffers and cache that the OS reports as freeable. Bytes
SwapUsage The amount of swap used on the host. Bytes
NetworkBytesIn The number of bytes the host has read from the network.
NetworkBytesOut The number of bytes sent out on all network interfaces by the instance. Bytes

エンジンレベルのメトリック

これらのメトリックは、ElastiCacheにデプロイされたエンジンのタイプとバージョンに依存します。 エンジンのパフォーマンスを測定し、その値に基づいて、エンジンを変更するか、そのキャッシュエンジンの一部のパラメーターを再構成するかを決定できます。 各メトリックはキャッシュノードレベルで計算されます。 以下は、そのようなメトリックのいくつかのリストです。

Metric Description Unit
CacheHits The number of successful read-only key lookups in the main dictionary. This is derived from keyspace_hits statistic. Count
CacheMisses The number of unsuccessful read-only key lookups in the main dictionary. This is derived from keyspace_misses. Count
CurrConnections The number of client connections, excluding connections from read replicas. ElastiCache uses two to three of the connections to monitor the cluster in each case. This is derived from the connected_clients statistic. Count
EngineCPUUtilization EngineCPUUtilization provides access to the Redis process CPU utilization to gain better insights into your Redis workloads. As Redis is single threaded and uses just one CPU core at any given point in time, EngineCPUUtilization provides more precise visibility into the load of the Redis process itself. Percent
NewConnections The total number of connections that have been accepted by the server during this period. This is derived from the total_connections_received statistic. Count

メトリックの監視

さまざまな期間のメトリックの値を確認できます。 過去1時間または過去1日など このために、コンソール、ElastiCacheダッシュボードの順に進みます。 ダッシュボードからクラスターを選択し、次にメトリックを監視するノードの名前を選択します。 ノードを選択し、監視するノードの名前の横にあるチェックボックスを選択します。 次の図は、ポップアップするメトリックウィンドウを示しています。

monitor_node_metrics_1.jpg

さらに下にスクロールすると、さまざまな時間間隔での値を示すグラフとして表示されるより多くのメトリックが表示されます。

monitor_node_metrics_2.jpg