In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Recently we found an interesting problem in the Redis cluster. After spending a lot of time debugging and testing, we can reduce the key memory usage in some clusters by 25% by changing the Redis expiration.
To enable redis to listen to key expiration, you need to add a configuration.
Implementation principle: in the version after Redis2.8, when we cache the Redis and set the cache expiration time, the key event notification of Redis will be triggered, the client subscribes to the notification event, and the server will send the corresponding notification event to each subscribed client, and then the client will send the corresponding notification event to each subscribed client according to the notification received. Do the corresponding follow-up processing (for example, the topic corresponding to the key expiration time notification is "keyevent@0:expired").
Because it takes some CPU to turn on the keyspace notification feature, it is turned off by default.
My configuration goes like this:
Notify-keyspace-events Ex
The above is the method of redis monitoring key expiration, if you want to know more, please pay attention to other related articles!
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.