Skip to content

Releases

Version 2.6.1

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 11 Nov 18:23

What's Changed

memtier_benchmark 2.6.1 is a packaging-only release: it contains the 2.6.0 code unchanged and fixes the CI signature check that blocked 2.6.0's YUM publish.

  • RPM publishing: the YUM release job rejected correctly signed RPMs because the runner's newer rpm prints Header OpenPGP V4 … instead of Header V4 … (#905). 2.6.0 shipped to Docker and APT without RPMs; use 2.6.1 for RPM installs.

See the 2.6.0 release notes for everything else in 2.6.

Full Changelog: 2.6.0...2.6.1

Version 2.6.0

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 11 Nov 13:26

What's Changed

memtier_benchmark 2.6.0 adds --request-timeout, a sliding-window tail-latency row, a Memcached meta protocol mode and a native Windows build, and fixes many --test-time, reconnect, retry and cluster edge cases.

Read Upgrade notes first: several changes move benchmark numbers or reject command lines that 2.5.x accepted.

Upgrade notes

Command lines and exit codes

  • --request is ambiguous (#903). It now abbreviates both --requests and --request-timeout; use the full name.
  • Empty and out-of-range numbers are errors (#699, #721, #748, #761, #668). Empty values such as an unset --max-reconnect-attempts=$VAR or --max-retries=$VAR (previously 0) are rejected; pass 0 explicitly. Wrapped and overflowing values, ports outside 1-65535 and --reconnect-backoff-factor infinity or underflow are rejected too. --multi-key-get is capped at 16777214 and --data-offset at 536870911.
  • --uri (#764, #720). Credentials are percent-decoded, so a literal %XX in a password must be written %25XX; bracketed IPv6 hosts work.
  • --data-import (#767). Keys or values over 512 MiB are rejected and --generate-keys validates the file at startup.
  • Runs that exited 0 can now fail. Write errors on any output file or stdout (exit 1; a closed pipe reader such as | head is exempt) (#729, #760, #717), verification mismatches or a verification pass with no replies (#771), connection rejections counted as ops (#897; exit 1, or 2 under unlimited reconnects after --connection-stage-timeout), and a closed stdout with no --out-file (#736).
  • Signals. SIGTERM is handled like Ctrl+C (#706).

Output consumers

  • New fields. Top-level FATAL_ERROR on failed runs (#25), Totals Errors, Retry Attempts and Retried Ops with --retry-on-error (#801), Unanswered requests in Runtime (#669), and library versions (#823).
  • Changed values. Empty latency histograms keep their JSON keys and write 0.000 (#793). Percentile keys are no longer truncated or colliding (#517), duplicate --command keys get a " #N" suffix (#588, #631), and invalid UTF-8 becomes U+FFFD (#741, #751). --uri and -a values are redacted in --json-out-file and --show-config (#735).

Build and runtime requirements

  • libevent 2.0.11 or newer (#812). The default-on Prometheus exporter needs 2.1.4 or newer; on 2.1.1 to 2.1.3 use --disable-prometheus (#823). libtool is no longer required (#762).
  • A failed evthread_use_pthreads() is now a fatal error instead of a warning that could hang later (#823). memtier also warns when the loaded libevent or OpenSSL has a different major.minor than the one it was built against.

New Features

  • Request stall timeout: --request-timeout=SECS (default 0, off) fails connections whose requests are never answered, for example a proxy that completes the TCP handshake but stops calling accept(). It is a stall timeout, not a per-request deadline: a connection that keeps receiving reply data never trips it, a connection that never answers is detected after SECS, and one that goes silent after answering within SECS to 2*SECS. A timeout is a connection error (reconnected under --reconnect-on-error, otherwise the run fails). Do not set it below the length of a legitimate blocking command such as BLPOP or WAIT. (#903)
  • Sliding-window tail latency: --latency-window=SECS (default 60, 0 disables, maximum 3600) under --realtime-latencies adds a win<N>s row with the percentiles of every sample from the last N seconds. Rows show their sample count (n=), and percentiles from too few samples are flagged *. Also fixes the overall row dropping samples recorded between a client's last snapshot and its per-second reset, a bug since 2.4.0. (#386, #824)
  • Configurable progress display: --progress-interval=SECS (positive whole seconds, default 1; 0 is rejected) renders progress every SECS seconds while supervision and export keep their cadence. (#129)
  • Memcached meta protocol: --protocol=memcache_meta for SET, GET and multi-GET against Memcached 1.6.10 and newer; --wait-ratio and --command are rejected at startup in this mode. (#363)
  • Abstract Unix sockets: --unix-socket @NAME connects to Linux abstract-namespace sockets (name up to 107 bytes; use ./@NAME for a filesystem path that starts with @). (#257)
  • Native Windows build: build and run on Windows 10+ with MSYS2 UCRT64 and the autotools build. Unix sockets are rejected on Windows. (#553)
  • Cursor walks for more types: --scan-incremental-iteration follows cursors for HSCAN, SSCAN and ZSCAN as well as SCAN (standalone, single command, pipeline 1). Generated MATCH arguments now stay fixed for the whole walk, including for SCAN. (#539)
  • Structured failure summary: with --json-out-file, a failed run records a top-level FATAL_ERROR string and keeps the configuration and results already written. Successful runs and graceful interrupts do not gain the field; JSON notices on stderr appear only with --debug. (#25)
  • Retry counters in JSON: Totals gains Errors, Retry Attempts and Retried Ops under --retry-on-error. (#801)
  • RESP2 without HELLO: with --protocol=resp2, a server that answers -ERR unknown command 'HELLO' (Redis older than 6.0, other RESP servers) is treated as RESP2 instead of stalling. --protocol=resp3 still fails against such a server, now with a clearer message. (#884)

Bug Fixes

--test-time, reconnects and retries

  • Timed-run end times: clients end at the later of their deadline and last reply, send no workload past the deadline, and exit --clients-start runs at --test-time; the JSON Start time, Finish time and Total duration average all threads, not the last one. (#869, #876, #892, #722, #742, #723, #789)
  • Setup-only clients: a client that reconnects repeatedly but never submits workload no longer adds its setup interval to Total duration, and a late first connect no longer ends a --reconnect-on-error run with zero requests. (#821, #865, #714)
  • Dead server: with --reconnect-on-error and unlimited attempts (the default), the --test-time deadline wins over further reconnects and the run exits normally; a finite --max-reconnect-attempts still exits 1 when exhausted. (#666, #873, #812)
  • --connection-stage-timeout: measured in microseconds, so N can no longer abort after just over N-1 seconds; a worker that already ended is not also reported as an abort; exit 2 if any --run-count run hits it. (#860, #891, #752)
  • Hangs on rejected setup: a run whose AUTH, SELECT or HELLO is rejected on only some connections, or on reconnect, now ends or reconnects instead of hanging; a retried CLUSTER SLOTS replaces a hang. (#750, #630, #667)
  • Connection rejections and errors: -ERR Protocol error, -ERR max number of clients and -DENIED ... protected mode are not counted as operations, ordinary error replies count as connection progress (#897, #788), and connection errors and Ctrl+C of clients that never connected are reported (#707, #698, #730).
  • Retry backoff: each retry waits its own retry-backoff-ms * factor^resends; fractional factors are floored at 100 ms (or --retry-backoff-ms if smaller), nan, inf, overflowing and empty factors are rejected. (#700, #727, #694, #692)
  • Retry accounting: a --requests run no longer stops early, exits 0 having sent fewer commands than requested, or fails with "client(s) stopped before reaching their stop condition" when retries remain after the last request; in-flight requests dropped on disconnect no longer stall clients. (#559, #556)
  • Worker threads and transactions: worker threads are no longer silently re-run after connection errors (#546); a --transaction block is no longer continued after its MULTI is lost to a reconnect, transaction requests are not retried, and planned --reconnect-interval reconnects finish the rotation first (#607, #634, #615, #807, #606, #893).

Cluster mode

  • Redirects and slot maps: -MOVED retries go to the node the reply names, -ASK retries send ASKING first, empty hosts resolve to the replying connection, and CLUSTER SLOTS follows MOVED even with a full pipeline; refreshes no longer happen inside an open MULTI, twice concurrently or on every -READONLY, and back off per client on CLUSTERDOWN (1 s doubling to 8 s). (#622, #600, #787, #591, #576, #618, #662, #777, #877)
  • Connections and partial maps: only a dropped cluster connection is reconnected, and once; synchronous dial failures are retried; a refresh that retires its own connection no longer aborts the run; partial slot maps no longer leave workloads spinning, and a seed owning none of the keys no longer stalls. (#560, #574, #575, #584, #799, #612)
  • Replica reads and statistics: keyless --command requests stay off replicas unless replica reads are allowed, strict --read-preference=secondary with no replicas names the cause, retried redirects count once and arbitrary-command redirects count in MOVED/sec and ASK/sec. (#887, #901, #605, #593, #582, #594, #583, #878)

Output, JSON and statistics

  • --run-count: BEST and WORST no longer always show run 1 and prefer complete runs (a run with a failed worker carries Interrupted: true); the aggregate Totals block has a real histogram, KB/sec and miss-rate warning, and latency is weighted by completed samples. (#571, #794, #572, #581, #573, #586, #804, #757)
  • Latency and counters: built-in WAIT reports real latency in JSON (#805); run statistics and hit, miss, MOVED and ASK counters are 64-bit, so totals no longer wrap on 32-bit and Windows builds (#552, #659).
  • JSON validity: strings, keys and non-UTF-8 bytes are escaped or replaced, deep-percentile keys no longer truncate or collide, and the...
Read more

Version 2.5.2

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 07 Oct 10:18

memtier_benchmark 2.5.2 is a maintenance release on the 2.5 line.

Fixes

  • Build against OpenSSL 4.0. The OpenSSL-4.0-only --tls-protocols contiguity check called bitmask_is_contiguous() before it was declared, so memtier_benchmark.cpp failed to compile with OpenSSL 4.0. Added a forward declaration under the same guards. Thanks @collinfunk. (#548)
  • TCP keepalive and no-delay are always applied. setsockopt(SO_KEEPALIVE) and setsockopt(TCP_NODELAY) were passed an uninitialized flags value, so depending on stack contents the options could be left disabled. They are now set explicitly, with a regression test covering connection setup and reconnects. (#541)
  • URI credentials and hostnames are owned correctly. Values parsed from a redis:// URI mixed malloc/strdup copies with borrowed argv pointers. They are now held in owned storage for the lifetime of the run. The "URI takes precedence" warnings now fire only when the conflicting flag (--tls, --authenticate, --select-db, --port, --host/--server) was actually given. (#544)

Packaging / CI

  • Restored the legacy OpenSSL and Debian Bullseye builds, and stabilized the mixed Zipfian validation test. (#540)
  • CI now runs on the 2.* maintenance branches; previously only master/main got build and test runs. (#549)

Full Changelog: 2.5.1...2.5.2

2.5.1

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 16 Jul 11:34

What's Changed

Packaging

  • Debian 13 (trixie) and Ubuntu 26.04 LTS (resolute) are now built and published to the packages.redis.io APT repository, fixing installation on those releases (#511).
  • Fixed Ubuntu armhf/arm64 package builds. The Ubuntu arm ports mirror (ports.ubuntu.com) is unreachable from the CI runners; every Ubuntu arm64/armhf .deb had been failing to build. debian/setup_sbuild.sh now uses a reachable mirror (with the correct /ubuntu-ports path), so arm packages publish again across all Ubuntu codenames.

Observability

  • Added a Grafana dashboard for the Prometheus /metrics exporter (grafana/dashboards/prom-memtier.json), with import instructions in the real-time metrics docs (#510).

Docs

  • README now lists the supported APT platforms: Debian 11/12/13 and Ubuntu 20.04/22.04/24.04/26.04.

Full Changelog: 2.5.0...2.5.1

Version 2.5.0

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 13 Jul 14:20

memtier_benchmark 2.5.0

First release of the 2.5 minor series (cut from master @ ec3d55f). Same-source performance verified equal-or-better vs 2.4.4 on Intel Ice Lake (pipeline 1: +0.04%, pipeline 16: +0.29%, p99 unchanged).

Features

  • Built-in Prometheus /metrics exporter via --prometheus-port (opt-in), with per-run labels and configurable latency buckets (#468); arbitrary-command hit/miss counter series (#484)
  • --read-preference read-endpoint routing for cluster and standalone (#456)
  • Per-thread and whole-process CPU tracking with saturation warning (#471)
  • --transaction EXEC-abort breakdown and live miss/abort rates (#486); single-key reuse across a --command rotation in cluster mode (#485)
  • Cluster-mode endpoint count and connection fan-out reporting (#489, #491)

Performance

  • fill_pipeline: make bufferevent_enable conditional, recovering the ~4% ops/sec regression introduced in 2.4 (#448)
  • Alloc-free per-position miss tracking; drop reply materialization for empty-collection arbitrary commands (#472, #469)

Fixes

  • Enable arbitrary-command miss tracking on cluster shard connections (#477)
  • Normalize latency stats through int64 microseconds (#463)
  • Monitor-input hardening: skip HELLO while loading, bound fuzz payload (#498)

Packaging / CI

  • RPM release objects uploaded with public-read ACL; one-time ACL maintenance workflow hard-scoped to memtier objects only (#501, #506, #509)

Version 2.4.4

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 01 Jul 17:34

memtier_benchmark 2.4.4 is a maintenance release on the 2.4 line.

Fixes

  • Correct Ops/sec for sub-millisecond aggregate spans. run_stats::timeval_factorial_average averaged tv_sec/tv_usec independently with truncation, so aggregate durations under ~1 ms could round to 0 µs and make the summary report Ops/sec = 0 (and Hits/sec, KB/sec) even with Count > 0 and a non-zero average latency. Now normalized through int64_t microseconds. (#463, #465)
  • RPM repository is publicly readable again. The YUM publish step uploaded objects with a private ACL, causing 403 AccessDenied for packages.redis.io/rpm/** (repo metadata and packages). Objects are now uploaded with public-read, matching the DEB pipeline. (#500, #501/#502)
  • --monitor-input: skip HELLO lines while loading and bound the fuzz payload. (#496/#497)
  • monitor-input fuzz harness: fix 5 pre-existing nightly failures. (#475/#495)

CI / test hardening

  • Backport nightly fuzz/soak harness fixes; add an opt-in timeout to the soak Benchmark.run() path. (#493, #499)

Observability

  • cluster-mode: report endpoint count and connection fan-out. (#489/#490)

Full changelog: 2.4.3...2.4.4

Version 2.4.3

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 22 Jun 23:11
13f7a88

What's Changed

Enhancements

  • --transaction now pins a rotation to a single key, in every mode (#485). In --cluster-mode --transaction, every __key__ across a --command rotation now resolves to the same key (taken from the first keyed command's --command-key-pattern), so all keyed commands of a WATCH/MULTI/EXEC unit (e.g. WATCH/GET/SETEX) hash to one slot and one key. Previously each keyed --command drew an independent key: without a hash tag they landed in different slots and the cluster rejected the transaction with CROSSSLOT/MOVED; even with a hash tag the WATCH guarded a different key than the SETEX wrote, making the optimistic lock meaningless. The same per-rotation key reuse was also lifted into the base client, so --transaction is no longer a no-op without --cluster-mode — it now collapses keys against a single endpoint that fronts a slot-enforcing backend (e.g. a Redis Enterprise proxy accessed without --cluster-mode). Requires the literal text around __key__ (including any {tag}) to be identical across keyed commands; --help and the standalone warning updated accordingly.

New Features

  • EXEC aborts broken out from misses under --transaction (#486). An EXEC that returns a null array is an optimistic-lock abort (a watched key changed), not a cache miss. Under --transaction the stats table gains an Aborts/sec column alongside Misses/sec, the per-command warning for EXEC now reads "abort rate" instead of "miss rate", and JSON output gains Aborts/sec for the EXEC command block and Totals. This is a display-only reinterpretation — EXEC nulls still increment the per-command miss counter, so global miss totals are unchanged, and the column/field/wording only change under --transaction; default arbitrary-command output is untouched.

Bug Fixes

  • --realtime-latencies live miss % in --command (arbitrary) mode: the live "miss %" was wired to the SET/GET hit/miss counters, which stay zero for arbitrary commands, so it always showed -. It now sources misses from the arbitrary-command counters, and adds a live "abort %" field under --transaction (#486).

Full Changelog: 2.4.2...2.4.3

Version 2.4.2

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 16 Jun 15:18

What's Changed

Performance

  • Restore HGETALL/HMGET throughput regressed by arbitrary-command miss-tracking (RED-200840). Miss-tracking (default-on since 2.4.0) materialized every reply to attribute per-position hits/misses. EmptyCollection commands (HGETALL/SMEMBERS/LRANGE) now read emptiness from the declared top-level array length with zero materialization (#469); ArrayPerElementNulls commands (HMGET/MGET/ZMSCORE/GEOPOS) now record per-position hits via an alloc-free parser bitmap instead of building the reply tree (#472). Restores both HGETALL and HMGET to within ~2-3% of the pre-2.4 (2.2.1) baseline with miss-tracking left on; no change to reported hit/miss statistics.

Full Changelog: 2.4.1...2.4.2

Version 2.4.1

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 02 Jun 22:16

What's Changed

Bug Fixes

  • Recover client-bound throughput: bufferevent_enable in fill_pipeline is now conditional on a new m_bev_paused flag instead of firing on every response. Recovers ~12% ops/sec when the client is the bottleneck; no change on server-bound workloads (#448).

Full Changelog: 2.4.0...2.4.1

Version 2.4.0

Choose a tag to compare

@fcostaoliveira fcostaoliveira released this 02 Jun 14:34

What's Changed

New Features

  • Cluster --monitor-input support: Route-then-stage replay across shards with end-to-end backpressure (#395, #399).
  • Cluster --multi-key-get: Slot-aware MGET routing with a shared cache rebuilt on every topology refresh (#397).
  • --transaction flag: Pins a --command rotation to a single shard in --cluster-mode; works with --pipeline > 1 (#390, #400).
  • --retry-on-error pipeline: Adds --max-retries, --retry-backoff-ms, --retry-backoff-factor, --retry-on=LIST, --max-retry-queue, --failed-keys-file (#381).
  • --realtime-latencies: Streaming HDR-histogram block emits per-second cur (avg: …) for ops/sec, bytes/sec, miss%, and configured percentiles (#379).
  • Per-key miss tracking for --command: --command-miss-tracking={auto,off} plus --miss-rate-threshold=PCT; emits a Per-Key Misses JSON section (#374, #398).
  • --connection-stage-timeout=SECS: Bounds the AUTH/HELLO/SELECT/CLUSTER SLOTS / first-steady-state phase; defaults to 30 s, 0 disables (#431).
  • TLS handshake logging: New TLS connection established: protocol X, cipher Y stderr line and a top-level TLS object in mb.json (#403).

Bug Fixes

  • Stack overflow in --monitor-input replay: VLA-allocated split-token buffer overflowed for large lines; now heap-allocated (#405).
  • Stack smash in memcached text parser: Unbounded sscanf("%s %s …") allowed a hostile server to overflow a 256-byte stack buffer; widths now bounded (#415).
  • OOB read on malformed CLUSTER SLOTS: handle_cluster_slots now validates reply shape and clamps slot bounds; malformed shards are logged and skipped (#425).
  • SIGPIPE on TLS RST: signal(SIGPIPE, SIG_IGN) installed process-wide so a peer RST mid-write no longer exits 141 (#383).
  • Crash handler hardening: sigaltstack on main and each worker, pre-warmed backtrace symbols, backtrace_symbols_fd, and a 5 s watchdog (#412, #416).
  • Cluster reconnect SIGABRT: cluster_client::connect() is now idempotent under --cluster-mode --reconnect-on-error (#378).
  • Reconnect duplicate-error thread kill: Duplicate error callbacks while a reconnect is pending no longer break the event loop (#392).
  • Unbounded reconnect/retry backoff: Exponential backoff is now capped at 60 s; previously factor=2.0 + unlimited attempts could schedule reconnects ~34 years out (#433).
  • --monitor-input parsing: Preserves embedded NUL bytes in the loader; handles CR-only line endings (#434).
  • RESP3 push and nil: Accepts > push frames (drained out-of-band) and counts _ (nil) as a miss in arbitrary-command tracking (#435).
  • CLI input validation: Rejects at parse time inputs that 2.3 silently accepted and then crashed/hung on — -c/-t/-n/--test-time negatives (#436), --run-count overflow (#429), --pipeline / --data-size / --data-size-list (#428), --command / --command-ratio (#427), --key-stddev / --key-median / G:G degenerate ranges (#430). All return a clear error and exit 2.
  • Bound recursive RESP teardown: Iterative ~mbulk_size_el so deeply-nested replies can't stack-overflow on cleanup; -Werror=vla build guard (#415).
  • TLS path leakage in JSON: --cert/--key/--cacert are now basename-only in mb.json (#440).
  • m_reqs_generated defensive clamp: Underflow guard at three cluster_client subtraction sites (#437).
  • Hits/sec /0 guard: summarize() rate computations no longer emit +Inf/nan on zero-duration runs (#436).

Build & Configuration Improvements

  • OpenSSL 4.0 build: Replaces removed SSL_OP_NO_TLSv* flags with SSL_CTX_set_min/max_proto_version; rejects non-contiguous --tls-protocols selection at parse time on 4.0+ (#432, #444).

Developer Tooling & CI Improvements

  • libFuzzer harnesses: Per-PR 60 s smoke fuzz across split_command_to_args, monitor_input, and redis_protocol (#421).
  • Adversarial RESP mock-server fixtures: 12 deterministic payloads exercising the parser surface (#419).
  • Monitor-input black-box fuzzer: Corpus + synthetic seeds, nightly + run-fuzz label trigger (#422).
  • Hypothesis CLI fuzzer: Re-broadened strategy + new cli-fuzz-nightly.yml (#424, #445).
  • Differential vs redis-benchmark / redis-cli: run-differential PR label, label/cron-triggered workflow (#420).
  • Nightly soak suite: 7 scenarios (long-run memory, large payloads, high concurrency, connection churn, cluster turbulence, retry storm, slow network) with run-soak label (#423).
  • Sanitizer stress matrix: STRESS=1 cells across ASAN/UBSan/TSAN (#418).
  • Workflow permissions hardening: permissions: contents: read declared on every workflow (#380, #393).
  • PARALLELISM=2 on cluster cells: Resolves Test cell 15-min timeout on cluster TLS (#402).

New Contributors

Full Changelog: 2.3.1...2.4.0