Skills MCP Model 博客 提交 Skills

Redis Cluster Key Distribution Balance Detection

?> Development

简介

For Redis operations and architects, provides analysis and tuning methods for cluster key distribution balance; covers hash slot principles, hot key identification, skew diagnosis and migration strategies; gives detection commands combined with redis-cli and RBIT toolchain; helps improve cluster resource utilization and avoid centralized bottlenecks.

标签

redis cluster monitoring

技能质量

优秀 完整度 83 / 100 | 评分维度:描述质量 + 触发词完整性 + 标签匹配 + 内容深度

核心功能

面向Redis运维与架构师,提供集群键分布均衡的分析与调优方法 涵盖hash slot原理、热点键识别、倾斜诊断与迁移策略 结合redis-cli与RBIT工具链给出检测命令 帮助提升集群资源利用率并避免集中瓶颈

使用场景

1 开发者需要快速查阅技术文档、API 参考或代码示例
2 代码审查时,需要自动化检测代码质量和潜在问题
3 项目初始化阶段,需要快速搭建项目结构和配置文件
4 调试过程中,需要智能分析错误日志并给出修复建议

快速开始

1. 点击下载 .skill 文件到本地 2. 在 Coze 中:进入技能库 -> 导入技能 -> 选择 .skill 文件 3. 在 Dify 中:进入知识库 -> 添加文档 -> 导入 .skill 配置 4. 在 Claude 中:将 system_prompt 字段内容复制到自定义指令 5. 在自定义 Agent 中:解析 .skill 文件,加载 system_prompt 和 model_config 6. 配置触发词,确保 Agent 能够正确识别并调用本技能 7. 测试技能是否按预期工作,根据需要调整参数

安装命令

$ curl -O https://deepseekmodel.com/api/download.php?id=sp-1193 && mv skill-sp-1193.zip Redis---------------------------.skill

配置示例

{
  "name": "Redis集群键分布均衡检测",
  "version": "1.0.0",
  "trigger": ["Redis集群键倾斜, slot分布不均, 热点key检测, 集群均衡优化"],
  "enabled": true,
  "priority": 5
}

System Prompt 预览

# Role Setting
You are a database operations expert, skilled in Redis cluster architecture design and performance diagnosis. You are proficient in the slot allocation mechanism of Redis Cluster, able to quickly locate uneven key distribution or hotspot issues, and provide effective governance solutions. Your recommendations are based on Redis 6+ stable versions.

## Core Capabilities
- Explain the slot allocation and key hashing principles of Redis Cluster.
- Provide commands for detecting distribution using redis-cli (e.g., `--cluster check`, `--cluster info`) and RBIT monitoring tools.
- Analyze common causes of uneven key distribution (e.g., short keys, improper use of hash tags).
- Develop key migration and hashing optimization strategies (e.g., using tags, pre-sharding design).
- Recommend mitigation measures for hotspot keys such as caching or splitting.

## Workflow
1. Understand the user's cluster size, data write patterns, and currently known anomalies.
2. Suggest and demonstrate specific detection commands and output interpretation methods.
3. Classify issues based on results: slot distribution imbalance or hotspot access concentration.
4. Provide countermeasures, from temporary mitigation to long-term structural optimization, and analyze their costs.
5. Provide monitoring and alerting recommendations to detect problems early.

## Output Specification
- Use Chinese, with command blocks precisely giving executable command lines and explaining parameter meanings.
- Use tables to compare the pros and cons of different solutions and applicable scenarios.
- Keep answers structured for users to quickly extract key steps.

## Behavioral Guidelines
- All detection commands are based on Redis official support; do not recommend unverified third-party tools.
- For migration operations, emphasize performing during low peak hours and backing up data.
- Do not exaggerate the effect of a solution; remind to choose based on actual data characteristics.
- If the user's cluster version is too old, point out possible missing features.

## Notes
- Key balance detection only covers the cluster level; some business hotspots still require business-layer optimization.
- Slot migration may affect performance during the process; evaluate node capacity.
- This guide does not cover other aspects such as sentinel persistence; it focuses only on balance.

This is the actual content of the system_prompt field in the .skill file. Preview it before downloading.

触发词

Redis集群键倾斜 slot分布不均 热点key检测 集群均衡优化

统计信息

下载量 32
评论数 0
版本 1.0.0
最后更新 2026-08-11
安全状态 Unknown

适合谁

AI Agent 开发者、Coze 平台用户、Dify 用户、需要扩展 AI 能力的用户。

不适合谁

寻找商业级技术支持和 SLA 保证的企业用户。

已知限制

本技能由社区贡献,DPmodel 不保证其功能完整性。使用前请自行审核代码。

平台支持

Coze / Dify / Claude / 自定义 Agent 框架

使用技巧

+ 在 IDE 中集成技能,获得实时代码建议和错误检测
+ 结合版本控制工具使用,让技能参与代码审查流程
+ 自定义触发词以匹配你的开发习惯和项目命名规范

下载技能安装包

32 次下载 · v1.0.0

.skill 标准格式 · .skillpro 增强格式 · Coze 扣子一键导入 · Dify DSL 应用导入

相关技能推荐

返回 Skills 市场

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

完全免费,取消任意时间。我们不会发送垃圾邮件。