当前位置:网站首页>Redis design specification
Redis design specification
2022-07-28 10:13:00 【Hua Weiyun】
Key Design specifications for

Java Object storage scheme

Redis Safety suggestion
Redis Don't be accessed by the Internet , prohibit bind 0.0.0.0 It should be set to bind 192.168.132.128
change redis The default port of is not 6379, It can be set to others, such as -port 6677
Redis Use non Root start-up , Do not use root, It can be for redis Create a special account for redis Conduct management .
Redis To set the password ( Login password and master-slave synchronization password , It is recommended to mix uppercase and lowercase letters with characters in passwords , Improve security ), Don't use the same login password
Regular backup save/bgsave command Conduct RDB Backup
Good configuration Linux Firewall rules , Release the minimum range of ports
Redis Memory usage evaluation
Occupied memory is divided into : Self memory , Buffer memory , Object memory
Self memory
redis The process is used to run and maintain the developed space memory .
Buffer memory
Client buffer : For example, the commands entered by the client are stored in the client buffer on the server .
Copy buffer :redis A piece of memory will be opened up for data exchange , Improve the speed of data exchange .
AOF buffer : be used for AOF journal , because AOF It's not just a command to write once AOF Log files , Instead, it is stored in AOF buffer , Reach a certain amount , Write to the log file together .
Object memory
The area where data is actually stored .
Redis Memory statistics

Redis Set upper memory limit

Redis Memory recovery strategy
volatile-lru: Delete the least recently used key
volatile-lfu: Delete the least frequently used key
volatile-ttl: In chronological order , Delete expiring key
volatile-random: Randomly delete data that is about to expire key
allkeys-lru: Delete the least recently used key
allkeys-lfu: Delete the least frequently used key
allkeys-random: Randomly delete all data key
noeviction: Never expire , If there is a request to add , Returns an error
边栏推荐
- Openatom openharmony sub forum, see you today at 14:00! Wonderful release of memorabilia attached
- OSPF的LSA及优化
- 腾讯技术专家:解密亿级用户产品 微信、QQ、王者荣耀...全面上云实践!
- ELK实时日志分析平台
- 【Gradle】This version of the JMH Gradle plugin requires Gradle 6+, you are using 6.6.
- 线程同步volatile与synchronized详解
- Xiao Hei stands up again and looks at leetcode:653. Sum of two IV - enter BST
- Choosing a supplier service system is the first step for large health industry enterprises to move towards digital transformation
- MySQL 为什么有时候会选错索引?
- SQL server, MySQL master-slave construction, EF core read-write separation code implementation
猜你喜欢

What are the advantages of MRO purchasing website for industrial products? One article will help you understand

Weekly report on July 27, 2022

高温天气筑牢安全生产防线,广州海珠区开展加油站应急演练

技术人 | 研发效能的思考总结

Basic examples that must be mastered by beginners of C #

关于软考高级要不要报班学习

Redis面试题必知必会

定了!就在7月30日!
![[esp32][esp idf] esp32s3 quickly build lvglv7.9](/img/39/8efef047d0a9223b97819a54b5edf8.png)
[esp32][esp idf] esp32s3 quickly build lvglv7.9

软件设计师考前20问,注意啦!!
随机推荐
腾讯技术专家:解密亿级用户产品 微信、QQ、王者荣耀...全面上云实践!
What are the highlights of B2B2C system? How to help jewelry enterprises build an omni channel multi merchant mall management system
[learning notes] border and period
TCP Basics
【MySQL】MySQL错误“ERROR 2006 (HY000):MySQL server has gone away”
(10) Defer keyword
Status Notice ¶
select如果不加order by子句,返回结果的顺序是不可靠的
2022-uni-app解析token标准的方式-使用jsrsasign-爬坑过了
ASP. Net core 6 framework unveiling example demonstration [29]: building a file server
[ESP32][esp-idf][LVGL7.9] 使用oled iic编译失败
Digital construction of pharmaceutical industry is on the verge
【云驻共创】华为云:MetaStudio数字内容生产线,让虚拟世界与现实世界无缝融合
Bit.store, which has attracted much attention, is at a glance of the latest developments
2022 uni app parsing token standard - use jsrsasign - climb the pit
Joint search set
Digital transformation scheme of real estate: all-round digital intelligence system operation, helping real estate enterprises improve the effectiveness of management and control
Redis面试题必知必会
双指针技巧
Consul