Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the parameters related to redis persistence

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what are the parameters related to redis persistence". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the parameters related to redis persistence".

Redis View persistence Information command:

# redis-cli info Persistence

# Persistence

Loading:0

Rdb_changes_since_last_save:4461626654

Rdb_bgsave_in_progress:0

Rdb_last_save_time:1535103959

Rdb_last_bgsave_status:ok

Rdb_last_bgsave_time_sec:2

Rdb_current_bgsave_time_sec:-1

Rdb_last_cow_size:313618432

Aof_enabled:0

Aof_rewrite_in_progress:0

Aof_rewrite_scheduled:0

Aof_last_rewrite_time_sec:-1

Aof_current_rewrite_time_sec:-1

Aof_last_bgrewrite_status:ok

Aof_last_write_status:ok

Aof_last_cow_size:0

The relevant parameters are explained as follows:

Loading: whether the server is loading persistent files

Rdb_changes_since_last_save: the number of written commands since the last rdb file was successfully generated, that is, how many write commands have not been persisted

Rdb_bgsave_in_progress: whether the server is creating a rdb file

Rdb_last_save_time: the timestamp since the last successful creation of the rdb file. Current timestamp-how many seconds did rdb_last_save_time= fail to generate the rdb file

Rdb_last_bgsave_status: whether the last rdb persistence was successful

Rdb_last_bgsave_time_sec: the number of seconds it took to successfully generate the rdb file last time

Rdb_current_bgsave_time_sec: if the server is creating a rdb file, then this domain records the number of seconds that the current creation operation has taken

The number of modifications performed by the parent process compared to the child process during the rdb_last_cow_size:RDB process (including read buffer, write buffer, data modification, etc.).

Aof_enabled: whether aof is enabled

Aof_rewrite_in_progress: identifies whether the rewrite operation of the aof is in progress

Aof_rewrite_scheduled:rewrite task planning, when the client sends a bgrewriteaof instruction, if the current rewrite child process is executing, then change the bgrewriteaof requested by the client into a scheduled task, and execute the rewrite after the end of the AOF subprocess

Aof_last_rewrite_time_sec: how long did the last aof rewrite take

Aof_current_rewrite_time_sec: if the rewrite operation is in progress, record the time used (in seconds)

Aof_last_bgrewrite_status: status of the last bgrewriteaof operation

Aof_last_write_status: status of the last aof write

The number of modifications performed by the parent process compared to the child process during the aof_last_cow_size:AOF process (including read buffer, write buffer, data modification, etc.).

Thank you for your reading, the above is the content of "what are the parameters related to redis persistence". After the study of this article, I believe you have a deeper understanding of what the parameters related to redis persistence are, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report