davidcastagnetoa/skills

redis_cluster

Sharding horizontal para escalar Redis más allá de un nodo

First seen Mar 3, 2026

Installation

$ npx skills add davidcastagnetoa/skills --skill redis_cluster

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from davidcastagnetoa/skills · top by installs.

npx skills add davidcastagnetoa/skills

Browse all from davidcastagnetoa/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,380 B
  • docs SUMMARY.md 81 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 9 installs

SKILL.md

redis_cluster

Redis Cluster distribuye datos automáticamente entre múltiples nodos usando hash slots (16384 slots). Permite escalar horizontalmente cuando un solo nodo Redis no es suficiente.

When to use

Usar cuando el dataset de caché supera la memoria de un nodo o cuando se necesita throughput superior a ~100K ops/s. Para la mayoría de despliegues iniciales, Redis Sentinel es suficiente.

Instructions

  1. Mínimo 6 nodos: 3 masters + 3 réplicas.
  2. Crear cluster: redis-cli --cluster create node1:6379 node2:6379 ... --cluster-replicas 1.
  3. Configurar cada nodo: cluster-enabled yes, cluster-config-file nodes.conf.
  4. Usar cliente cluster-aware: redis-py con RedisCluster(startup_nodes=[...]).
  5. Evitar operaciones multi-key que cruzan slots: usar {hash_tag} para colocar keys relacionadas en el mismo slot.
  6. Monitorizar redistribución de slots durante rebalanceo.
  7. Configurar cluster-node-timeout 5000 para detección de fallos.

Notes

  • Redis Cluster no soporta SELECT (múltiples databases); solo database 0.
  • Las operaciones Lua multi-key deben operar en keys del mismo slot.
  • Para el caso de uso de KYC, Redis Sentinel suele ser suficiente; Cluster es para escala masiva.