当前位置:网站首页>Redis large key

Redis large key

2022-06-09 07:32:00 Sunshine code

Redis The big Key What does that mean? ?[ interview 8.0]

Redis Of Key Corresponding Value Too big

Redis The big Key What's the problem? ?[ interview 8.0]

Both reads and writes are blocked , because Redis A single thread
Very occupied IO Resources and network bandwidth

Redis The big Key What is the solution for ?[ interview 8.0]

 Insert picture description here
utilize Linux Built in task scheduling crontab, Run through task scheduling sh The script parses and generates csv file , Task scheduling frequency can be once a day
utilize MySql Of load Command import csv To MySql In a record sheet , Record tables can be created ,csv The main content of :db Indexes ,key Value size , type , Quantity, etc
utilize Canal monitor binlog journal , And send the binlog Message to message queue
The consumer processes the message and sends an email or SMS to the developer for processing key

原网站

版权声明
本文为[Sunshine code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021419388218.html