Redis tools

Which slot a key lands in, and what the bytes on the wire actually say.

Redis Hash Slot Calculator

Which of the 16,384 slots does this key land in?

CRC16 of the key, masked to 16,384 slots, exactly as Redis Cluster routes it.

Redis Hash Tag Tester

Will these keys survive a multi-key command?

Check whether Redis keys are genuinely co-located before using them in one MGET, transaction or Lua script, or Redis answers CROSSSLOT.

Redis RESP Protocol Decoder

Read what the server actually sent

Decode RESP2 and RESP3 into the structure redis-cli would print, with byte offsets.

Redis RESP2 vs RESP3 Reply Decoder

What the same reply looks like on each protocol

Decode a Redis reply and see which parts need RESP3, and what a RESP2 client would have received instead after a library upgrade.

Redis Command to RESP

Exactly what your client puts on the socket

Turn a redis-cli command into the RESP bytes a client actually sends, with the byte count.

Redis Glob Pattern Tester

Redis globs are not shell globs

Test a KEYS or SCAN MATCH pattern against real key names, using Redis's own matcher.

Redis Connection URL Parser

The path is the database number

Break a redis:// or rediss:// URL into its parts and flag what is wrong with it.

Redis Memory Unit Converter

1g and 1gb are not the same number

Convert redis.conf memory values and see the trap quantified: 1g is decimal and 1gb is binary, a difference of 73 MB per gigabyte.

Redis TTL Converter

-1 and -2 are not durations

Convert TTL values between seconds, milliseconds and human durations, and get the EXPIRE or PEXPIRE command to set them.

Redis Stream ID Parser

The first half is a millisecond timestamp

Parse stream IDs into a timestamp and a sequence, and explain the special forms.

redis.conf Validator

Will Redis start with this file?

Parse a redis.conf and find what stops Redis starting or silently does nothing, like a directive set twice where only the last counts.

Redis Production Config Linter

The settings that cause incidents

Check a redis.conf against the failures that actually happen: no password on an exposed bind, no maxmemory, and noeviction on a cache.

redis.conf to CONFIG SET

Which of these can you change without a restart?

Turn a redis.conf into the CONFIG SET commands that apply it to a running server, with the restart-only directives commented out rather than silently included.

Redis ACL Rule Decoder

What does this user actually get?

Read an ACL rule set the way Redis does, left to right, and see what each rule contributes.

Redis ACL Validator

Find the rule that does nothing

Audit Redis ACL rules for the ones that do nothing, like a revocation overwritten by a later +@all, which grants everything.

Redis INFO Analyzer

The numbers INFO does not print

Paste INFO output and get the derived values: hit ratio, memory against maxmemory, and whether the fragmentation ratio means swapping.

Redis SLOWLOG Analyzer

What blocked everyone else

Paste SLOWLOG GET output to group slow commands by type, rank them by total blocking time, and get the known cause for each.

Redis CLUSTER NODES Parser

Read the topology, and find the gap

Parse CLUSTER NODES output into a readable topology and check slot coverage.

Redis Cluster Slot Distribution

Who owns how much, and what is missing

Show how the 16,384 slots are shared across primaries, how far each is from an even split, and exactly which ranges nobody owns.

Redis Keyspace Notification Flags

Why your events never arrive

Decode a Redis notify-keyspace-events string. A on its own publishes nothing, because it selects event classes but no channel.

Redis Memory Calculator

The encoding decides, not the data

Estimate Redis memory as a range. The encoding a collection lands in changes the answer by two to three times, and it flips on a threshold.

Redis Key Count to Memory

The fixed cost per key

How much memory N Redis keys take. Every key costs roughly 100 bytes before its value, which is why a million tiny keys is bookkeeping.

Redis Encoding Threshold Calculator

One field more, several times the memory

Find the exact point where a hash, set or sorted set stops using the compact encoding. Crossing it costs 1.5 to 3.4 times the memory, and nothing warns you.

Redis Bitmap Memory Calculator

Sized by the highest bit, not the set ones

A Redis bitmap is a plain string, so SETBIT at offset one million allocates 125 KB immediately even with one bit set.

Redis HyperLogLog Calculator

12 KB whether you count a thousand or a billion

Compare a HyperLogLog against an exact set for counting distinct values. The size is capped at 12 KB and the error is fixed at 0.81%, whatever the cardinality.

Redis Cluster Sizing

Only 60% of each node is usable

Work out how many primaries and replicas a dataset needs. The usable fraction of each node is the assumption most cluster plans get wrong.

Redis RDB and AOF Size Calculator

The fork needs memory, not disk

Estimate RDB and AOF disk needs, including the peak during a rewrite when both copies exist.

Redis Replication Bandwidth Calculator

How long the backlog actually covers

Work out replication traffic per replica and how many seconds of disconnection the backlog covers before a full resync of the whole dataset is forced.

Redis Connection Pool Calculator

More connections is not more throughput

Size a client connection pool against maxclients and against what a single-threaded server can actually do.

Redis Pipeline Calculator

It removes round trips, not work

Compare sequential Redis commands against pipelined batches. The saving is network round trips, not server work.

Redis Cache Hit Rate Calculator

99% to 90% is ten times the backend load

Translate a cache hit rate into backend request rate and average latency.

Redis Eviction Policy Simulator

volatile- with no TTLs is noeviction

Work out what happens at maxmemory under each policy. The trap is volatile-lru with keys that have no TTL, which silently behaves exactly like refusing writes.

Redis Cost Estimator

Your rates, so nothing goes stale

Estimate the monthly cost of a Redis deployment from rates you supply. No price table is bundled, because any table shipped in a tool is wrong within months.

Redis Config File Generator

A redis.conf with the reasons in it

Generate a commented redis.conf for a cache or a datastore, with the eviction and persistence choices explained and no password in the file.

Redis ACL Generator

A user that can do exactly one job

Generate a Redis ACL SETUSER rule with key patterns and command categories, in the order that makes it restrictive rather than a superuser.

Redis Maxmemory Config Generator

The limit, and the headroom it needs

Work out a Redis maxmemory value from the machine size, with the eviction policy and the headroom that replication buffers and the save fork need.

Redis Persistence Config Generator

How much you can afford to lose

Generate Redis AOF and RDB settings from how much data loss you can accept, with the memory and disk the rewrite actually needs.

Redis Lua Script Generator

Atomic, and short enough to stay that way

Generate a Redis Lua script for a common atomic operation, with every key passed through KEYS so it still routes correctly on a cluster.

Redis TLS Config Generator

Encrypted, and the old port actually closed

Generate Redis TLS settings including replication and the cluster bus, and close the plaintext port, which setting tls-port alone does not do.

Redis Sentinel Config Generator

Failover that can actually be authorised

Generate a Redis Sentinel config with a quorum that works, and the majority rule that decides whether a failover can happen at all.

Redis Cluster Config Generator

Three primaries, and the bus port open

Generate a Redis Cluster config with the slot layout, the replica count, and the bus port that is a separate firewall rule from the client port.

Redis Docker Compose Generator

Local Redis that is not on the internet

Generate a Docker Compose file for Redis with a named volume and a port bound to localhost rather than to every interface on the host.

Redis Client Config Generator

Timeouts on both sides, and a sane pool

Generate Redis client settings for redis-py, ioredis, Lettuce or go-redis, with the timeouts that stop a partition hanging a thread forever.

Redis MEMORY STATS Analyzer

Which number actually matters

Read Redis MEMORY STATS output and find what is using memory, including the fragmentation ratio below 1.0 that means swapping.

Redis Bigkeys Output Analyzer

Elements are not bytes

Read redis-cli --bigkeys or --memkeys output, and see why the biggest key by element count is often not the one using the most memory.

Redis CLIENT LIST Analyzer

Find the connection hurting you

Read Redis CLIENT LIST output to find MONITOR sessions, slow consumers with large output buffers, and connection leaks.

Redis LATENCY Report Analyzer

An empty report may mean nothing was recorded

Read Redis LATENCY LATEST output and see what caused each spike, including why an empty report usually means the monitor was never enabled.

Redis Keyspace Prefix Analyzer

Which key family is growing

Group a list of Redis keys by prefix to find which family dominates the keyspace and which ones are missing an expiry.

Redis SET Command Builder

A plain SET clears the TTL

Build a Redis SET command with EX, NX, XX, KEEPTTL and GET, and see which combinations need Redis 7 and which silently drop an expiry.

Redis ZRANGE Query Builder

REV reverses the argument order

Build a Redis ZRANGE query by index, score or lex, with REV and LIMIT, and avoid the reversed bounds that silently return nothing.

Redis SCAN Iteration Planner

COUNT is a hint, not a page size

Plan a Redis SCAN iteration with COUNT, MATCH and TYPE, and understand the duplicate guarantee that breaks naive key counting.

Redis Key Name Validator

Legal is not the same as workable

Check Redis key names for whitespace, control characters, inconsistent separators and hash tags that put the whole keyspace in one slot.

Redis Cluster Compatibility Checker

Works now, breaks when you shard

Check Redis commands for cluster mode problems: cross-slot multi-key operations, SELECT, and per-node commands read as cluster-wide.

Other categories