In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
What if the redis memory is full? I believe that very novice in the face of this problem when at a loss, the editor summed up the following content. The following information is about solving the problem that redis memory is full.
When the redis memory is full, the service will go down. According to the official parameters, the service downtime can be avoided because the memory is full.
Redis only supports a single instance, and generally has a maximum memory of 10~20GB.
Redis sets the maxmemory parameter of the configuration file to control its maximum available memory size (in bytes).
Property is turned off by default. Maxmemory-policy defaults to noeviction
Below I will list the elimination rules for deleting the redis key when there is insufficient available memory.
But you have to be careful! Redis does not accurately delete the least used keys of all keys, but selects 3 keys at random to delete the least used keys of the three keys.
Then the number 3 can also be set, corresponding to the maxmeory-samples in the configuration file. This property is off by default
The backend startup settings under Windows are as follows:
Enter: redis-server-- service-install redis.windows.conf-- loglevel verbose (install redis service)
Enter: redis-server-- service-start (start the service)
Enter: redis-server-- service-stop (stop service)
Launch the specified configuration file redis-server-service-start redis.windows-service.conf
The above is the way to solve the problem that redis memory is full, and you need to use it yourself to understand the details. If you want to know more about it, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.