The riakkv_1h_kv_put_mean_latency
alert calculates the average time (in milliseconds) between the reception of client PUT
requests and the subsequent responses to the clients over the last hour in a Riak KV database. If you receive this alert, it means that your Riak KV database is experiencing higher than normal latency in processing PUT
requests.
Riak KV is a distributed NoSQL key-value data store designed to provide high availability, fault tolerance, operational simplicity, and scalability. The primary access method is through PUT
, GET
, DELETE
, and LIST
operations on keys.
PUT
latency mean?PUT
latency refers to the time it takes for the system to process a PUT
request - from the moment the server receives the request until it sends a response back to the client. High PUT
latency can impact the performance and responsiveness of applications relying on the Riak KV database.
Use the riak-admin cluster status
command to get an overview of the Riak KV cluster's health. Make sure there are no unreachable or down nodes in the cluster.
Use the riak-admin status
command to display various statistics of the Riak KV nodes. Pay attention to the node_put_fsm_time_mean
and node_put_fsm_time_95
metrics, as they are related to PUT
latency.
Use networking tools (e.g., ping
, traceroute
, mtr
, iftop
) to check for potential network latency issues between clients and the Riak KV servers.
If the client application is heavily write-intensive, consider optimizing it to reduce the number of write operations or increase the capacity of the Riak KV cluster to handle the load.
Examine the Riak KV logs (/var/log/riak/riak_kv.log
by default) for any error messages or unusual patterns that might be related to the increased PUT
latency.