/database-operations-skills:redis-configuration-validationfrom database-operations-skills
Validates Redis maxmemory/eviction-policy, persistence (RDB/AOF), and Cluster/Sentinel topology before production deployment. Checks eviction policy against data classification, replica placement across failure domains, and quorum/majority math for failover.
Ships in database-operations-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A Redis configuration can look internally consistent and still fail badly in production: an eviction policy that matches "a cache" in principle but not the specific mix of TTL'd and non-TTL'd keys actually stored, a Cluster topology where every replica happens to sit in the same availability zone as its primary, or a Sentinel quorum number copied from an example that doesn't match the actual number of deployed Sentinels. This skill is the pre-production validation gate for those settings, complementing the operational depth in redis-operations-and-cluster-management — that skill covers how persistence, cluster, and memory management work; this one covers how to check a specific proposed configuration against them before it's trusted with production traffic.
maxmemory, maxmemory-policy, and persistence settings
match the actual data being stored (pure cache vs. mixed cache and
durable data).CONFIG SET change (or an infra-as-code-managed
redis.conf change) to a production instance, especially anything
touching maxmemory, appendfsync, or save.CONFIG GET * (or the specific parameters in
question) and INFO on the target instance/cluster — a role with
Redis ACL category @read and @admin-config-read is sufficient for
validation; no write access needed unless applying the validated
change.CLUSTER SHARDS requires
7.0+, use CLUSTER SLOTS/CLUSTER NODES on older clusters).CLUSTER NODES.maxmemory and fork-headroom sizing against
reality rather than a guess.maxmemory-policy against actual data classification, not assumptionredis-cli CONFIG GET maxmemory-policy
redis-cli CONFIG GET maxmemory
allkeys-lru
or allkeys-lfu is appropriate — validate every keyspace prefix in
use is genuinely safe to evict at any time, not assumed to be.volatile-* policy is safe, and it must be paired with a
concrete audit that every non-disposable key genuinely has no TTL and
every disposable key genuinely does:
redis-cli --scan --pattern 'session:*' | head -20 | xargs -I{} redis-cli TTL {}
A volatile-* policy does not protect against an application bug that
fails to set a TTL on cache data (it accumulates forever, never
evicted) or that accidentally sets a TTL on durable data (it silently
becomes evictable). Validate both directions, not just the policy name.noeviction should be the validated choice for any instance acting as
a primary datastore (queues, non-cache session truth, rate-limit
counters that must not silently disappear) — confirm the application
has a real plan for handling OOM command not allowed errors (backoff,
alerting) rather than this being an unplanned failure mode discovered
in production.redis-cli CONFIG GET save
redis-cli CONFIG GET appendonly
redis-cli CONFIG GET appendfsync
save "" (RDB disabled) and appendonly no (AOF disabled) both
hold, the instance has zero persistence — any restart, planned or
not, loses all data. Validate this is genuinely intended (e.g. a
pure, rebuildable cache where cold-start-empty is acceptable) and not
an oversight for a payments/session-critical instance.appendonly yes is set (not relying on RDB's coarser snapshot interval alone) and
appendfsync matches the durability requirement — flag appendfsync always as a latency cost worth confirming is actually needed versus
everysec's ~1-second loss window, and flag appendfsync no as
effectively equivalent to RDB-only durability despite AOF being
enabled.redis-cli -c CLUSTER NODES
Cross-check each primary/replica pair's actual host/AZ placement
(from cloud provider tags or infra-as-code inventory, not inferable from
CLUSTER NODES alone) against the assumption that a replica survives
its primary's failure:
CLUSTER NODES shows a replica configured, since a single
zone failure takes out both.redis-cli --cluster check <any-node>:6379
Any gap or overlap reported here means some keys are currently
unreachable or ambiguously owned — this must be resolved (via
--cluster fix, cautiously and in a maintenance window) before the
cluster is considered production-ready, not left as a known issue.sentinel monitor mymaster <PRIMARY_HOST> 6379 2
The quorum value (2 in this example) must be validated against:
CONFIG SET/redis.conf change against restart requirements and blast radiusMost Redis parameters take effect immediately via CONFIG SET and
persist to redis.conf only if followed by CONFIG REWRITE — validate
which behavior is intended:
redis-cli CONFIG SET maxmemory 8gb
redis-cli CONFIG REWRITE # persist to redis.conf, or it reverts on restart
A CONFIG SET without a subsequent CONFIG REWRITE reverts silently on
the next restart, which is a common source of "the setting we applied
last month is gone" surprises — validate that infra-as-code-managed
redis.conf and any live CONFIG SET changes are kept in sync, rather
than allowing drift between the file and the running instance.
Apply the proposed maxmemory-policy, persistence, or topology change
against a staging Redis Cluster/Sentinel deployment seeded with
production-representative key size and TTL distribution (not just row
count) before scheduling the production change, since eviction behavior
and fork/rewrite timing are both sensitive to real value-size
distribution, not just total dataset size.
maxmemory-policy against that statement
directly rather than defaulting to whatever the last deployment used.save "" and appendonly no) as a finding
requiring explicit sign-off, not a silent default — confirm in writing
that cold-start-empty is acceptable for that specific instance.CLUSTER NODES output alone, since
Redis itself has no concept of AZ/rack and cannot tell you if a
replica placement is actually fault-tolerant.CONFIG REWRITE (or the infra-as-code equivalent of updating the
source-of-truth redis.conf) into the same change as any CONFIG SET
applied live, so the file and the running instance never silently
diverge.Symptom: A Redis instance is provisioned as "just a cache," but
months later an incident reveals it also stores rate-limit counters
that must not silently disappear, and a memory-pressure event evicted
them under allkeys-lru.
Fix: The maxmemory-policy was validated against an assumption
("it's a cache") rather than the actual keyspace contents. Audit real
key prefixes in use (--scan --pattern) before approving an
allkeys-* policy, and require any non-disposable use case to either
move to its own instance or use a validated volatile-* policy with a
confirmed TTL audit.
Symptom: A Redis Cluster passes every health check
(CLUSTER NODES shows every shard with a replica) but an AZ outage
takes out multiple shards simultaneously with no automatic recovery.
Fix: Replica placement wasn't validated against real
infrastructure topology — replicas were colocated with their primaries
in the same AZ. Validate placement against actual cloud
provider/rack metadata, not just replica count, before treating the
cluster as AZ-fault-tolerant.
Symptom: A Sentinel-monitored primary fails, and failover never completes even though the configured quorum (2) was reached. Fix: Reaching the monitor quorum is not sufficient — carrying out the failover requires a majority of all configured Sentinels to elect a leader, and if one of only 3 Sentinels was already down when the primary failed, the 2 remaining can still fail to reach a majority in some topologies, or a total that's even to begin with makes this worse. Validate total Sentinel count is odd and the election-majority math (not just the monitor quorum number) is sound for the actual deployed count.
Symptom: A CONFIG SET maxmemory-policy volatile-lru change
applied via redis-cli during an incident works immediately, but
reverts to the old (wrong) policy after the next routine restart/
failover.
Fix: CONFIG REWRITE was never run (or the infra-as-code
redis.conf template was never updated to match), so the live change
and the persisted config file diverged. Always follow a live
CONFIG SET with either CONFIG REWRITE or an equivalent update to
the managed config source, and validate the two are in sync as part
of the change.
Symptom: A reviewer approves disabling persistence
(save "", appendonly no) on an instance "to improve write
throughput," without confirming what data the instance actually
holds, and a routine node replacement wipes production session data.
Fix: This is a high-blast-radius change if the instance isn't
genuinely a rebuildable cache — always validate the actual data
classification and get explicit sign-off before approving zero
persistence, and prefer AOF with everysec as a low-cost default
that preserves most of the throughput benefit while keeping a small
loss window, rather than jumping straight to no persistence at all.
Scenario: A team requests review of a new Redis Cluster
provisioning PR before go-live: 3 primaries, 3 replicas, maxmemory-policy allkeys-lru, save "", appendonly no, Sentinel not used (Cluster mode
handles failover). The instance will store both a product-catalog cache
(fully disposable) and a shopping-cart service's cart contents (must
survive a restart without silently vanishing, per the product team).
maxmemory-policy: allkeys-lru is unsafe given the cart
data is not disposable — carts have no TTL requirement stated and
would be evicted under memory pressure exactly like catalog cache
entries. Flag as blocking; recommend either splitting cart data to a
separate instance/policy, or moving to volatile-lru with a
confirmed TTL audit showing catalog-cache keys have TTLs and cart
keys do not (making carts eviction-exempt) — team confirms carts
should also expire, just on a longer, explicit TTL (24h), resolving
the conflict cleanly under volatile-lru.save "" and appendonly no together mean
zero persistence — a routine node restart during a rolling upgrade
would silently drop all in-progress carts. Flag as blocking; require
appendonly yes with appendfsync everysec given cart loss has real
business cost but sub-second precision durability (always) isn't
needed.maxmemory-policy volatile-lru with all
cart and catalog keys carrying explicit TTLs, appendonly yes /
appendfsync everysec, and replica placement corrected to guarantee
every primary/replica pair spans separate AZs — validated against a
staging cluster seeded with representative cart/catalog key
proportions before the production change is scheduled.volatile-* matches the application's cache-aside/write-through design).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin database-operations-skills23 skills in this plugin
/arangodb-multi-model-database-operationsCovers operating ArangoDB, a multi-model database combining document, graph, and key-value collections in a single engine with a unified query language (AQL): collection type selection, graph traversal via AQL, and cluster configuration (coordinators, DB-servers, agency). Use when the user asks to "write an AQL query," "should I use a document or edge collection in ArangoDB," "set up an ArangoDB cluster," "why is this AQL graph traversal slow," or "choose between ArangoDB and a single-purpose database for a mixed graph/document workload."
/cassandra-wide-column-database-operationsCovers Apache Cassandra ring topology and token/partition design, tunable consistency levels (ONE, QUORUM, ALL, LOCAL_QUORUM), compaction strategy selection (SizeTiered, Leveled, TimeWindow), and tombstone/GC-grace management. Use when the user asks to "design a Cassandra partition key," "choose a Cassandra consistency level," "why is this Cassandra query slow," "pick a compaction strategy," "Cassandra tombstone warnings in logs," or "add/remove a node from a Cassandra ring."
/clickhouse-analytical-database-operationsCovers operating ClickHouse, the leading open-source OLAP columnar database: MergeTree engine family selection (MergeTree, ReplacingMergeTree, AggregatingMergeTree, SummingMergeTree), sharding and replication topology via ReplicatedMergeTree and Distributed tables, and materialized views for streaming aggregation. Use when the user asks to "set up a ClickHouse cluster," "pick a MergeTree engine," "why are my ClickHouse queries slow," "shard and replicate ClickHouse tables," "deduplicate rows in ClickHouse," or "build a ClickHouse materialized view for rollups."
/cloud-data-warehouse-operations-snowflake-bigquery-redshiftComparative operations guide for the three dominant managed cloud data warehouses: Snowflake virtual warehouse sizing and multi-cluster scaling, BigQuery slot allocation and on-demand vs. capacity pricing, and Redshift cluster/RA3 node sizing and workload management (WLM) — plus cost-control and query-performance practices common to all three. Use when the user asks to "size a Snowflake warehouse," "control BigQuery query costs," "tune Redshift WLM queues," "why is this warehouse query slow," "reduce our data warehouse bill," or "choose between Snowflake, BigQuery, and Redshift."
/database-backup-and-restore-strategiesCross-database backup tooling and restore-testing discipline: pg_dump/pg_basebackup for PostgreSQL, mysqldump/Percona XtraBackup for MySQL/MariaDB, and mongodump/mongorestore for MongoDB — logical vs. physical backup trade-offs, point-in-time recovery, and why an untested restore is not a real backup. Use when the user asks to "set up database backups," "restore from a pg_basebackup," "why did our mysqldump restore fail," "test our backup/restore process," "set up point-in-time recovery," or "design a backup retention policy."
/database-connection-pooling-strategiesCross-database connection pooling patterns and tooling: PgBouncer for PostgreSQL, ProxySQL for MySQL/MariaDB, and the shared design questions (transaction vs. session vs. statement pooling modes, backend pool sizing, failover-aware routing) that apply regardless of the underlying database engine. Use when the user asks to "size a connection pool," "choose between transaction and session pooling," "set up ProxySQL for MySQL," "why do prepared statements break under pooling," or "route reads/writes through a proxy during failover."
Other plugins' skills for the same job