running-benchmarks
Skill2k starsChanged 5 months agoApache-2.0View on GitHub
Run Rally benchmarks (races) against Elasticsearch — an existing/external cluster or a Rally-provisioned distribution — and read the summary report. Use when running a race (any pipeline, track, challenge, target-hosts, or auth) or when interpreting throughput, latency, and service_time results.
- Reads credentials
Trending
Quiet since March.thin dataabout the whole repository
Who's talking about elastic/rally
- elastic/elasticsearch“ANN search improvements”GitHub · Feb 24, 2022 · 22 reactions
- elastic/kibana“[Stack Monitoring] Ingest pipeline monitoring”GitHub · Jul 25, 2019 · 8 reactions
- elastic/rally-tracks“Account for multiple drivers in ESQL profiling”GitHub · Mar 3, 2026 · 1 reactions
- elastic/rally-tracks“Add CCR/CSS challenge to elastic/logs”GitHub · Aug 10, 2022 · 1 reactions
- opensearch-project/OpenSearch“Search Benchmark testing”GitHub · Feb 11, 2021 · 1 reactions
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- Feb 24, 2022ANN search improvements — elastic/elasticsearch22 reactions · 11 comments
- Jul 25, 2019[Stack Monitoring] Ingest pipeline monitoring — elastic/kibana8 reactions · 13 comments
- Mar 3, 2026Account for multiple drivers in ESQL profiling — elastic/rally-tracks1 reaction · 2 comments
- Aug 10, 2022Add CCR/CSS challenge to elastic/logs — elastic/rally-tracks1 reaction · 2 comments
- Feb 11, 2021Search Benchmark testing — opensearch-project/OpenSearchsays it tested it1 reaction · 1 comment
4 more on GitHub
- Oct 23, 2018Add proxy support for urllib3 — elastic/elastic-transport-python1 reaction · 3 comments
- Mar 17, 2021elasticsearch数据集 — cloudnativecube/octopus0 reactions
- Nov 3, 2020Throttle scrolls based on pages/s instead of ops/s — elastic/rally-tracks0 reactions · 1 comment
- Nov 3, 2020Throttle bulk-indexing based on docs/s instead of ops/s — elastic/rally-eventdata-track0 reactions
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessing-benchmark-resultsSkill
- developing-rallySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
Run against the cluster:
- Very specific: line 80
If Rally generated the id, recover the most recent one afterwards with esrally list races.
- Distinctive: line 111
Check error rate first as a validity gate.
- Very specific: line 121
All flags (do not invent flags.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Running Rally benchmarks
Launch a race against Elasticsearch and interpret its summary report. Rally can run benchmarks several ways (see Choose a pipeline).
For meaningful results, prefer an existing/external cluster you control: running Rally locally co-locates the load driver and the system under test on one host, where they can perturb each other's measurements. Local deployment is a good fit when that's not a concern — smoke testing, fast iterative local development, or demos.
Safety
- Never run Rally as root — Elasticsearch refuses to start with root privileges.
- Strongly avoid benchmarking production. Rally mutates cluster state (creating, writing to, and deleting indices), and competing traffic can perturb results. Prefer a dedicated, quiet environment.
Choose a pipeline
Rally infers the pipeline from your flags.
| Pipeline | Use when | Selected by |
benchmark-only | Primary path. Cluster is already running and you provisioned it. | --pipeline=benchmark-only --target-hosts=... |
from-distribution | Rally downloads and runs Elasticsearch locally. Setup checks/demos; sharing a host skews results, so only large differences stand out. | --distribution-version=X |
from-sources | Rally builds Elasticsearch from a git revision and runs it locally (CI/dev). Setup checks/demos; sharing a host skews results, so only large differences stand out. | --revision=... |
benchmark-only trade-off (docs/pipelines.rst): because Rally did not provision the
cluster, results are not easily reproducible and Rally cannot gather host-level metrics
(CPU, GC, disk I/O, index size). Treat those numbers as directional.
Launch a race
Discover tracks, then inspect one:
esrally list tracks esrally info --track=pmcRun against the cluster:
esrally race --track=pmc --pipeline=benchmark-only \ --target-hosts=10.5.5.10:9200,10.5.5.11:9200Secured cluster — TLS + basic auth via
--client-options:esrally race --track=pmc --pipeline=benchmark-only --target-hosts=host:9243 \ --client-options="use_ssl:true,verify_certs:true,basic_auth_user:'elastic',basic_auth_password:'changeme'"API-key auth (including Elastic Cloud / Serverless — see
docs/serverless.rst):esrally race --track=geonames --pipeline=benchmark-only --target-hosts=${ES_HOST}:443 \ --client-options="use_ssl:true,api_key:${ES_API_KEY}" --on-error=abortRecord the
race-idso you can find the results later. Rally assigns a random UUID by default; pass your own with--race-idto know it up front:RACE_ID=$(uuidgen) esrally race --track=pmc --pipeline=benchmark-only --target-hosts=host:9200 --race-id="$RACE_ID" echo "$RACE_ID" # note this for `esrally compare` / metrics-store queriesIf Rally generated the id, recover the most recent one afterwards with
esrally list races. (Optionally add--user-tags="key:value"for human-friendly filtering — not required.)- Save the report:
--report-file=~/benchmarks/result.md(add--report-format=csvfor CSV). - Fast setup/smoke check: add
--test-modeto ingest a tiny slice instead of the full corpus.
Multi-cluster A/B (benchmark-only only; telemetry disabled in this mode): add --multi-cluster
with JSON-format --target-hosts/--client-options. See docs/recipes.rst.
Races are long-running (often 20+ minutes) and download large corpora on the first run for a track. Treat a race as a long job, not a quick command.
Validate correctness before trusting numbers
Rally does not abort on query errors by default — it folds them into the error rate in the summary, which silently skews results.
- Confirm operations return the hits you expect. A mapping mismatch (e.g.
textvskeyword) yields 0 hits with no error. - While validating, use
--on-error=abortand/or add track-levelassertionsand run with--enable-assertions. - A non-zero error rate on a task means those results are suspect. See
docs/recipes.rst.
Read the summary report
- throughput — operations per second (higher is better).
- latency — includes the time a request waits in the queue before Rally sends it.
- service_time — request→response only, excludes wait (what most load-test tools incorrectly call "latency").
- processing_time — includes Rally's client-side overhead; a large gap vs
service_timepoints to a client-side bottleneck. - Metrics are reported per task; "Cumulative … of primary shards" is not wall-clock time.
- Check error rate first as a validity gate.
See docs/summary_report.rst and docs/metrics.rst.
References
- Running & pipelines:
docs/race.rst,docs/pipelines.rst - Recipes (existing cluster, Elastic Cloud, multi-cluster):
docs/recipes.rst - Serverless:
docs/serverless.rst - Report & metric definitions:
docs/summary_report.rst,docs/metrics.rst - All flags (do not invent flags; verify here or via
esrally <subcommand> --help):docs/command_line_reference.rst - Comparing and charting results across past races: the
accessing-benchmark-resultsskill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

