Redis / Valkey DBA

Redis and Valkey Command-Line Tools

Question

A busy production primary needs a low-impact inventory of oversized keys; which redis-cli or valkey-cli mode fits?

Answer

Use --bigkeys with -i to throttle it. It walks the keyspace with SCAN, sleeps the given interval every 100 SCAN calls, and reports the largest keys found per data type. Run it against a replica to keep load off the primary. Applies to Redis and Valkey.

This is 18 of 21 free samples for Redis / Valkey DBA.

More Redis / Valkey DBA topic samples