Skip to content

v0.56.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 11:51
· 50 commits to master since this release
f57ae69

BetterDB now finds a hot shard in a cluster, names the keys behind it, suggests which slots to move where, and on self-managed Valkey 9.0+ moves them in one atomic command from the Anomalies page. Slot migrations that stall or fail now raise events, and a new detector catches cluster nodes that disagree about the topology.

Upgrade notes

  • Rate-based thresholds: keyspace_misses, evicted_keys and acl_denied are now scored as per-second rates. Any stored absolute override for them now means events per second.
  • healthy is deprecated on cluster node responses and in MCP get_cluster_nodes. Use the new state (healthy, suspect or failed).
  • Slow log anomalies no longer count BetterDB's own commands. Set ANOMALY_SLOWLOG_IGNORE_OWN_CLIENTS=false for the old behaviour.
  • Minimum ACL: hot-key names need +cluster|getkeysinslot +object|freq. Running a rebalance needs +cluster|migrateslots +cluster|cancelslotmigrations.
  • One new column is added on startup (connections.node_availability_zones).

Hot shards (#702, #705, #706, #707, #732, #733, #742)

  • Detect: a hot_shard warning fires when a shard's CPU stays at 2× the cluster median for 60 s. It needs Valkey 8.0+ with cluster-slot-stats-enabled yes. New per-shard Prometheus gauges (betterdb_cluster_shard_*) come with it.
  • Explain: with an LFU eviction policy, the event names the hot keys. Without one, you can start a short capture on the hot primary.
  • Plan: the card shows which slot ranges to move to which shards and the projected load afterwards. When one slot or key carries the load, it says that moving slots won't help and suggests key-level fixes instead. The same data is in the new MCP tool get_hot_shards.
  • Move (Valkey 9.0+): an admin can run the plan with one atomic CLUSTER MIGRATESLOTS, follow its progress and cancel it. BetterDB re-checks the plan against the live cluster before sending it. This is off unless BETTERDB_SLOT_MIGRATION=true.
Detection and plan One-click move
Self-managed Valkey 9.0+ ✅ ✅
Self-managed Valkey 8.x ✅ — reshard by hand
AWS ElastiCache ✅ ❌ blocked by AWS
Aiven ❌ no per-slot CPU ❌

Cluster health

  • Slot migrations (#734): slot_migration events track running moves. slot_migration_stuck fires when a move stops progressing (10 min for atomic moves, 30 min for legacy) or fails.
  • Topology divergence (#728, #729, #730): each round BetterDB compares the cluster view of several nodes, at least one per availability zone. It raises topology_divergence when they keep disagreeing about failures, membership or slot owners, which catches a node or zone that is cut off.
  • Primary without replicas (#727): warns when every replica of a shard is out of sync, for example during an operator roll.
  • Availability zones (#703, #704): read from CLUSTER SHARDS on Valkey 9.1+. On 8.x you can set them per node on the Cluster page.
  • Suspect nodes (#725): nodes flagged fail? now show as suspect instead of healthy.

Other changes

  • Webhooks to private networks (#731): set WEBHOOK_ALLOWED_PRIVATE_CIDRS / WEBHOOK_ALLOWED_PRIVATE_HOSTS to reach receivers in your own cluster or VPC.
  • Lost log entries (#726): betterdb_log_capture_lost_entries_total counts slow log and command log entries the server dropped between polls.
  • CVE scan (#525): end-of-life Redis branches (7.0, 6.0, 5.0) now report CVE-2025-49844 instead of a false all-clear.
  • ACL audit history (#701): the retention sweep was deleting all of it. It's fixed, but rows already deleted can't be restored.
  • Migrations over SSH tunnels (#700): execution and validation now work through tunnelled connections.
  • False anomalies (#723, #724): fixed noisy alerts from lifetime counters and from BetterDB's own slow commands.