Database / BetterDB Interview questions
Define COMMANDLOG support in BetterDB Monitor?
COMMANDLOG is a Valkey 8.1+-exclusive server feature that captures large requests and large replies, not just slow ones the way SLOWLOG does.
A command can return in a couple of milliseconds and still ship a multi-megabyte reply that pressures memory and network throughput; SLOWLOG would never flag that, but COMMANDLOG will.
BetterDB Monitor persists this data historically instead of letting it disappear on rotation the way the server's own in-memory log would, so you can query which commands were unusually large, and exactly when, across any time range – a core part of the "debug what happened at 3am" pitch behind the product.
More Related questions...