当前位置:网站首页>记录一次Redis大Key的排查
记录一次Redis大Key的排查
2022-06-26 20:32:00 【壹氿】
工具
使用的是GitHub的开源脚本:https://github.com/weiyanwei412/rdb_bigkeys
使用
- 下载go语言安装包
wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz
- 解压安装包
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
- 导入环境变量
export PATH=$PATH:/usr/local/go/bin
- 验证go环境是否配置成功
go version
- 下载脚本源码
git clone [email protected]:weiyanwei412/rdb_bigkeys.git
- 进入目录初始化go语言项目
- go mod init redisBigKeys
- 拉取相关依赖
- go get
- 构建可执行脚本
go build,执行后生成可执行化文件:rdbBigKeys - 分析Redis RDB文件
./rdbBigKeys --bytes 1024 --file bigkeys.csv --sep 0 --sorted --threads 4 /var/lib/redis/6379/dump.rdb
- 生成CSV文件

边栏推荐
- 抖音实战~分享模块~生成短视频二维码
- MongoDB实现创建删除数据库、创建删除表(集合)、数据增删改查
- 【贝叶斯分类3】半朴素贝叶斯分类器
- Uni app uses canvas to draw QR code
- The relationship between the development of cloud computing technology and chip processor
- C# 练习。类列表加记录,显示记录和清空记录
- 孙老师版本JDBC(2022年6月12日21:34:25)
- Introduction to single chip microcomputer one-on-one learning strategy, independent development program immediately after reading
- 0 basic C language (3)
- Daily basic use of alicloud personal image warehouse
猜你喜欢

Gamefi active users, transaction volume, financing amount and new projects continue to decline. Can axie and stepn get rid of the death spiral? Where is the chain tour?

西瓜书重温(七): 贝叶斯分类器(手推+代码demo)

慕课8、服务容错-Sentinel

leetcode刷题:字符串05(剑指 Offer 58 - II. 左旋转字符串)
MongoDB实现创建删除数据库、创建删除表(集合)、数据增删改查

windows系統下怎麼安裝mysql8.0數據庫?(圖文教程)

阿里云个人镜像仓库日常基本使用

飞天+CIPU体为元宇宙带来更大想象空间

Two methods of QT to realize timer

动态规划111
随机推荐
MongoDB实现创建删除数据库、创建删除表(集合)、数据增删改查
Disruptor本地线程队列_使用transProcessor处理器和WorkPool两种方式进行消费对比---线程间通信工作笔记005
0基础c语言(0)
Development of NFT for digital collection platform
Gd32 USB composite device file descriptor
MySQL - table creation and management
tsconfig. json
mongoDB的三种基础备份方法
vue中缓存组件keep-alive
Review of watermelon book (VII): Bayesian classifier (manual push + code demo)
leetcode刷题:字符串03(剑指 Offer 05. 替换空格)
On the origin of the dispute between the tradition and the future of database -- AWS series column
C: 反转链表
Solve com mysql. jdbc. exceptions. jdbc4.MySQLNonTransientConnectionException: Could not create connection
leetcode刷题:字符串05(剑指 Offer 58 - II. 左旋转字符串)
定长内存池
Jz-062- the k-th node of binary search tree
【贝叶斯分类2】朴素贝叶斯分类器
Muke 8. Service fault tolerance Sentinel
0 basic C language (2)