Configuration
BetterKV keeps the Redis-style operational model, but the goal is different: tighter latency distributions, less surprise under pressure, and simpler performance tuning.
Configuration model
Start BetterKV with a config file:
Override individual settings on the command line:
Recommended baseline
Use this as a practical starting point for a single primary in production:
Performance-sensitive settings
Network
Use a Unix socket for the lowest local-call overhead when the application and BetterKV share a host.
Memory and eviction
Choose eviction deliberately. If you are comparing with Redis or Valkey, make sure eviction policy and dataset pressure are identical.
Persistence
Persistence settings can materially change latency. For fair benchmarks, align them across BetterKV, Valkey, and Redis.
Replication
ACL and auth
Tuning for comparisons
If your benchmark claims are going to say BetterKV is up to 10x faster, make the setup defensible:
- pin the same CPU count for each server
- use equivalent persistence settings
- keep the same client pipeline depth
- report p50, p95, p99, and p99.9
- call out whether the workload is read-heavy, write-heavy, expiry-heavy, or script-heavy
Runtime changes
Operator note
The marketing line belongs in benchmarks, not in config defaults. The configuration story should support the benchmark story: stable latency, predictable behavior, and fewer long-tail spikes than Redis and Valkey.