Skip to content

Add Alluxio S3 read benchmarks with an Azure Blob baseline - #1406

Closed
Lei Yao (wonderyl) wants to merge 5 commits into
v2from
wonderyl-alluxio-s3-read
Closed

Lei Yao (wonderyl) wants to merge 5 commits into
v2from
wonderyl-alluxio-s3-read

Conversation

@wonderyl

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: c79c0ac0a31f3792025baec4b5b9b850da97fcac

Dimension Assessment Rationale
Change confidence 6/10 ↑ All eight Alluxio helper tests pass; all 30 generated shell steps pass syntax checks.
↓ Synthetic metric data demonstrates checkpoint egress misattribution caused by the one-minute window shift in checks.jq; unresolved.
↓ No Azure end-to-end run was performed in this session.

Summary

Compare Alluxio's read-cache performance with direct Azure Blob reads using the same curl client, concurrency, and retry policy. This branch contains the implementation reviewed in #1400, published from this session without additional code changes.

The pipeline provisions separate Alluxio worker and client pools, prepares local NVMe page stores, and runs warm-cache GET/range scenarios plus concurrent cold checkpoint loads. Results include throughput, latency, retries, connection reuse, worker UFS-read counters, and checkpoint storage egress. Shared mounting, configuration recording, and diagnostics helpers are reused by the existing warp pipeline.

Review considerations

  • Checkpoint egress attribution currently shifts metric windows by one minute to account for reporting delay. The session review identified that this can skip a run's first bucket and attribute the next run's traffic to it; this remains unresolved.
  • Worker disk preparation uses a privileged DaemonSet; persistent client pods run the workload through kubectl exec.
  • The benchmark provisions substantial Azure resources and is manually triggered, with resource-group cleanup at the end.

Validation

  • Alluxio helper tests: 8/8 passed.
  • Generated pipeline: 30 shell steps passed bash syntax checks.
  • Synthetic checkpoint egress fixture reproduced the attribution issue above.
  • Azure execution was not performed in this session.

MountBlobStorage takes the container, SAS variable and mount path, and derives
the UFS and step names from the path, so one job can mount several containers.
RecordRunConfiguration takes an optional benchmark record whose default
reproduces the warp values; each recorded node pool carries its VM size's
published network limit. The diagnostics step becomes the shared
CollectDiagnostics.

The warp pipeline's generated YAML changes only in its mount step and loses
the documentation-link comment in the configuration step, which now lives in
the KCL source.
s3c.sh sends the same requests at the same concurrency to Alluxio's S3 API
(SigV4) or to Azure Blob directly (REST + SAS); only the endpoint differs.
Every request on both sides retries transient errors (408, 429, 500, 502,
503, 504, truncated bodies, connect timeouts) up to 3 times, as Azure Blob
clients do; after retries it accepts only 200/206 with the exact expected
size, and every request has a timeout. Each run reports its retries and its
failed requests by status and size.

Each curl run starts with an unmeasured HEAD to every host its requests use,
so the measured requests reuse an open connection on both sides instead of
paying for DNS, TCP and TLS on Blob and an in-cluster TCP connect on Alluxio.
Each run reports how many measured requests still opened a connection, and
its per-request time limit. HOST_OFFSET lets clients that read the same keys
at the same time start on different hosts.

checks.jq validates each run, checks that an Alluxio run read almost nothing
from the UFS, summarizes the scenarios and attributes Blob egress for the
checkpoint load. All jq runs on jq 1.6 and later.
kcl/alluxio/s3_read runs read scenarios through Alluxio's S3 API and, in the
same run, against Azure Blob directly, alternating the two sides: cross-region
repeated reads, same-region small objects and range reads, large-object GETs at
1/4/16 concurrent requests, and five clients loading the same checkpoint at
once (bytes read from Blob and completion times).

Both datasets of scenarios 1-10 are loaded into the cache first, so every
Alluxio rep reads the workers' UFS-read counter before and after and fails if
the workers read more than 1% of the rep's bytes from Blob; the counts go into
summary.json. In the checkpoint load each client starts at a different worker,
so every worker serves the same share.

Five workers keep their page store on the local NVMe disk. The cluster uses
NOSASL: with several workers and redirect disabled, a worker relays reads to
the worker that owns the file, and under SIMPLE that internal connection is
rejected, so reads fall back silently.
Lei Yao (wonderyl) and others added 2 commits November 27, 2026 23:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Include status and bounded license-controller logs on failure or timeout before cleanup.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants