2.1-redis configuration explanation (bottom)

Source: Internet
Author: User

Redis aof Persistence-related configuration

appendonly No #如果是yes, then turn on aof persistence

appendfilename "appendonly.aof" # Specifies AOF file name, also exists under Dir definition directory.

appendfsync everysec #指定fsync () call pattern, there are three kinds of no (do not call Fsync), always (each write will call Fsync), everysec (call once per second Fsync). The first is the fastest, the second data is the safest, but the performance will be worse, the third is this scenario, the default is the third.

No-appendfsync-on-rewrite No # Use No to avoid disk IO blocking when the write volume is very large

Auto-aof-rewrite-percentage #规定什么情况下会触发aof重写. The value is a scale, and 10 means that the override mechanism is triggered when the AoF file increases by 10%.

Auto-aof-rewrite-min-size 64MB #重写会有一个条件, is not less than 64Mb


Redis slow log-related configuration

For slow logs, you can set two parameters, one is the execution length, the unit is microseconds, the other is the length of the slow log. When a new command is written to the log, the oldest one is removed from the command log queue.


Slowlog-log-slower-than 10000 #慢于10000微秒则记录日志


Slowlog-max-len #日志长度128条


2.1-redis configuration explanation (bottom)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.