In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Environment: a redis cluster (the master-slave environment of redis4.0.11)
Background: this redis cluster development has a large number of key writes and expires, resulting in a sharp increase in memory.
After analyzing the rdb file using the rdb tool (git address: https://github.com/sripathikrishnan/redis-rdb-tools), we found that there are a lot of key in memory, and the expiration time is early, but it still exists. Reason: because redis's key cleanup strategy is lazy deletion (lazy free), we can try to increase the number of internal cronjob of redis executed per second, which can speed up key elimination.
Procedure:
1. Config get hz sees that the default value of the current redis-server is 10
2. Config set hz 50 We set hz to 50 here, and then observe it for a period of time (note that the setting value of hz can be gradually increased in steps of 10, but generally no more than 100)
The following two pictures are intercepted by me from the surveillance. You can see that a large number of key have been eliminated quickly after the setup.
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.