[
https://issues.apache.org/jira/browse/OAK-12426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rishabh Daim updated OAK-12426:
-------------------------------
Description:
h3. Summary
Add reproducible performance benchmarks comparing CacheLIRS and the
Caffeine-backed Oak cache for oak-store-document before the Caffeine default is
rolled out under OAK-12425.
h3. Scope
* Add the benchmark to {{oak-benchmarks}} so benchmark-only code is reviewed
and run independently from the production default switch.
* Exercise representative DocumentNodeStore cache workloads through production
cache APIs, including steady-state reads, churn/eviction, invalidation, and
concurrent access.
* Compare throughput, latency, hit/miss rate, eviction behavior, and
loader/backend-read count for CacheLIRS and Caffeine with identical cache
weights and deterministic workloads.
* Include warm-cache and cold-cache scenarios and multiple
working-set-to-cache-size ratios.
* Document an exact command, JVM settings, workload parameters, and a concise
result table.
h3. Reference
Use the benchmark structure and reporting patterns from [apache/jackrabbit-oak
PR 2898|https://github.com/apache/jackrabbit-oak/pull/2898], adapting them to
oak-store-document caches rather than segment caches.
h3. Acceptance Criteria
# Both CacheLIRS and Caffeine run against identical deterministic
DocumentNodeStore cache workloads.
# Results report throughput/latency plus hit, miss, eviction, and backend-load
counts.
# Benchmarks cover steady-state, cache churn, invalidation, and concurrent
access with at least three working-set/cache-size ratios.
# The benchmark can be selected from BenchmarkRunner and its run command and
JVM requirements are documented in code or existing benchmark documentation.
# Results demonstrate whether Caffeine is at least as performant as CacheLIRS
for the representative workloads; any regression is quantified and investigated.
# Benchmark changes are delivered in a PR separate from OAK-12425.
h3. Maintenance-mode comparison
Deliver OAK-12437 in this same benchmark PR. Compare LIRS, Caffeine SYNC and
Caffeine ASYNC through production DocumentNodeStore cache construction after
OAK-12436, OAK-12438 and the entry-metadata changes in OAK-12425. Hold
workloads, weights, JVM settings and persistent-write behavior constant.
h3. Validation and delivery order
# Include benchmark tests for configuration and workload accounting, plus
fixed-seed smoke runs for LIRS, Caffeine SYNC and Caffeine ASYNC.
# Publish repeatable commands and a result table; quantify regressions rather
than assuming either maintenance mode is faster. Oak Store Document defaults to
SYNC; compare explicit SYNC and ASYNC selections without changing the shared
API default.
# The benchmark PR is based on the completed OAK-12425 migration and metadata
PR in the gh stack, and also delivers OAK-12437. This describes implementation
order; benchmark evidence remains a prerequisite for rollout decisions.
was:
h3. Summary
Add reproducible performance benchmarks comparing CacheLIRS and the
Caffeine-backed Oak cache for oak-store-document before the Caffeine default is
rolled out under OAK-12425.
h3. Scope
* Add the benchmark to {{oak-benchmarks}} so benchmark-only code is reviewed
and run independently from the production default switch.
* Exercise representative DocumentNodeStore cache workloads through production
cache APIs, including steady-state reads, churn/eviction, invalidation, and
concurrent access.
* Compare throughput, latency, hit/miss rate, eviction behavior, and
loader/backend-read count for CacheLIRS and Caffeine with identical cache
weights and deterministic workloads.
* Include warm-cache and cold-cache scenarios and multiple
working-set-to-cache-size ratios.
* Document an exact command, JVM settings, workload parameters, and a concise
result table.
h3. Reference
Use the benchmark structure and reporting patterns from [apache/jackrabbit-oak
PR 2898|https://github.com/apache/jackrabbit-oak/pull/2898], adapting them to
oak-store-document caches rather than segment caches.
h3. Acceptance Criteria
# Both CacheLIRS and Caffeine run against identical deterministic
DocumentNodeStore cache workloads.
# Results report throughput/latency plus hit, miss, eviction, and backend-load
counts.
# Benchmarks cover steady-state, cache churn, invalidation, and concurrent
access with at least three working-set/cache-size ratios.
# The benchmark can be selected from BenchmarkRunner and its run command and
JVM requirements are documented in code or existing benchmark documentation.
# Results demonstrate whether Caffeine is at least as performant as CacheLIRS
for the representative workloads; any regression is quantified and investigated.
# Benchmark changes are delivered in a PR separate from OAK-12425.
h3. Maintenance-mode comparison
Deliver OAK-12437 in this same benchmark PR. Compare LIRS, Caffeine SYNC and
Caffeine ASYNC through production DocumentNodeStore cache construction after
OAK-12436, OAK-12438 and the entry-metadata changes in OAK-12425. Hold
workloads, weights, JVM settings and persistent-write behavior constant.
h3. Validation and delivery order
# Include benchmark tests for configuration and workload accounting, plus
fixed-seed smoke runs for LIRS, Caffeine SYNC and Caffeine ASYNC.
# Publish repeatable commands and a result table; quantify regressions rather
than assuming either maintenance mode is faster. Keep the ASYNC default until
measurements justify a separate policy change.
# The benchmark PR is based on the completed OAK-12425 migration and metadata
PR in the gh stack, and also delivers OAK-12437. This describes implementation
order; benchmark evidence remains a prerequisite for rollout decisions.
> Benchmark CacheLIRS and Caffeine for oak-store-document
> -------------------------------------------------------
>
> Key: OAK-12426
> URL: https://issues.apache.org/jira/browse/OAK-12426
> Project: Jackrabbit Oak
> Issue Type: Task
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
>
> h3. Summary
> Add reproducible performance benchmarks comparing CacheLIRS and the
> Caffeine-backed Oak cache for oak-store-document before the Caffeine default
> is rolled out under OAK-12425.
> h3. Scope
> * Add the benchmark to {{oak-benchmarks}} so benchmark-only code is reviewed
> and run independently from the production default switch.
> * Exercise representative DocumentNodeStore cache workloads through
> production cache APIs, including steady-state reads, churn/eviction,
> invalidation, and concurrent access.
> * Compare throughput, latency, hit/miss rate, eviction behavior, and
> loader/backend-read count for CacheLIRS and Caffeine with identical cache
> weights and deterministic workloads.
> * Include warm-cache and cold-cache scenarios and multiple
> working-set-to-cache-size ratios.
> * Document an exact command, JVM settings, workload parameters, and a concise
> result table.
> h3. Reference
> Use the benchmark structure and reporting patterns from
> [apache/jackrabbit-oak PR
> 2898|https://github.com/apache/jackrabbit-oak/pull/2898], adapting them to
> oak-store-document caches rather than segment caches.
> h3. Acceptance Criteria
> # Both CacheLIRS and Caffeine run against identical deterministic
> DocumentNodeStore cache workloads.
> # Results report throughput/latency plus hit, miss, eviction, and
> backend-load counts.
> # Benchmarks cover steady-state, cache churn, invalidation, and concurrent
> access with at least three working-set/cache-size ratios.
> # The benchmark can be selected from BenchmarkRunner and its run command and
> JVM requirements are documented in code or existing benchmark documentation.
> # Results demonstrate whether Caffeine is at least as performant as CacheLIRS
> for the representative workloads; any regression is quantified and
> investigated.
> # Benchmark changes are delivered in a PR separate from OAK-12425.
> h3. Maintenance-mode comparison
> Deliver OAK-12437 in this same benchmark PR. Compare LIRS, Caffeine SYNC and
> Caffeine ASYNC through production DocumentNodeStore cache construction after
> OAK-12436, OAK-12438 and the entry-metadata changes in OAK-12425. Hold
> workloads, weights, JVM settings and persistent-write behavior constant.
> h3. Validation and delivery order
> # Include benchmark tests for configuration and workload accounting, plus
> fixed-seed smoke runs for LIRS, Caffeine SYNC and Caffeine ASYNC.
> # Publish repeatable commands and a result table; quantify regressions rather
> than assuming either maintenance mode is faster. Oak Store Document defaults
> to SYNC; compare explicit SYNC and ASYNC selections without changing the
> shared API default.
> # The benchmark PR is based on the completed OAK-12425 migration and metadata
> PR in the gh stack, and also delivers OAK-12437. This describes
> implementation order; benchmark evidence remains a prerequisite for rollout
> decisions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)