Skip to content
TexeraPublic

About

Chowder: Cache-Aware Dataflow Management across Materialized and Pipelined Executions (Implementation, Experiments, and Full Technical Report)

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chowder: Cache-Aware Dataflow Management Across Materialized and Pipelined Executions

This repository contains the full technical report (Chowder_Full_Technical_Report.pdf), implementation, workflow datasets, benchmark runners, EC2 evaluation logs, and figure-generation scripts for Chowder, implemented on top of Apache Texera (Incubating).


Repository Structure and Code Mapping

1. Core Implementation (amber/ and frontend/)

2. Experiments, Datasets, and Recorded EC2 Results (experiments/)

  • experiments/workflows/:
    • w1_spam/: Workflow plan (wf1_plan.json) and email input datasets (wf1_20k.csv, wf1_2k.csv) for W1: Spam (20 operators, 23 edges).
    • w2_sentiment/: Workflow plan (wf2_plan.json) and movie review datasets (wf2_500.csv, wf2_50.csv) for W2: Sentiment (29 operators, 33 edges).
    • imdb/: Base IMDB table (movie_metadata.csv) used by prepare_datasets.sh and gen_reuse_bench_data.py to generate scaled tables (movies_x1.csv, movies_x20.csv, movies_x100.csv) and tens.csv for W3: Diamond, W4: Expand, W5: Fanout-4, and W6: Fanout-8.
    • 6k_set/plans_json.tar.gz: Compressed archive of the 6,191 real-world workflow topologies (6K-Set).
  • experiments/results/:
    • data/e2e-runs.csv and data/e2e-planning.csv: Recorded per-execution wall-clock runtimes, storage I/O volumes, SHA-256 sink verification hashes, and planner decisions across all end-to-end workloads (W1 through W6) and storage tiers (nvme, st1, s3, sc1) on AWS EC2 c6id.4xlarge.
    • data/calibration/: Per-tier storage and scan calibration measurements (cloud-m1..m4-{nvme,st1,s3,sc1}.csv).
    • data/sweeps-condensed.csv.gz and data/sweeps-with-greedy-fallback.csv.gz: Recorded per-workflow planning metrics across the 6,191 workflows in 6K-Set.
    • summaries/: Aggregated summary tables (e2e-block-totals.csv, e2e-per-edit.csv, e2e-status.csv, sweep-summary.csv, sweep-two-layer-fallback.csv, sweep-limit-fallbacks.csv).
  • experiments/scripts/:

Quick Start

1. Reproduce the Evaluation Figures from Recorded EC2 Logs

Requires Python 3 with numpy and matplotlib:

python3 experiments/scripts/gen_eval_figures.py

This reads experiments/results/ and writes the eight evaluation PDFs into experiments/figures/:

  • exp_e2e_condensed.pdf (End-to-end wall-clock runtime across W1 through W6 on S3)
  • exp_B6_pasta.pdf (W1: Spam and W2: Sentiment across consecutive executions E1 through E4)
  • exp_B1_B2_time.pdf (W3: Diamond on S3, W4: Expand on S3, and W4 across all four storage tiers)
  • exp_B3_fanout.pdf (W5: Fanout-4 and W6: Fanout-8 at 101K and 504K rows on S3)
  • exp_B4_cost.pdf (Cost-model ranking fidelity and storage I/O volume breakdown)
  • exp_A4_quality.pdf (Suboptimality of Eager Reuse and cost reduction across 6K-Set)
  • exp_ol_vs_tl.pdf (One-Layer vs. Two-Layer plan quality under 10 to 100 ms interactive cutoffs and at the 10 s budget)
  • exp_A1_effort.pdf (Search space explored, search time, and completion rate across 6K-Set and ablations)

2. Unpack and Generate Workflow Datasets

./experiments/scripts/prepare_datasets.sh

3. Build and Run Unit and Planner Verification Tests

Requires JDK 17 and sbt:

sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.scheduling.OneLayerAndTwoLayerScheduleGeneratorSpec"
sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.scheduling.SkeletonGeneratorSpec"
sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.scheduling.experiment.ReusePlanningExperimentSpec"

4. Run the Offline Planner Study on 6K-Set

Export the test classpath once, then invoke run_planner_sweep.sh:

sbt "export WorkflowExecutionService/Test/fullClasspath" | tail -n 1 > test-classpath.txt

# Run a single shard over all 6,191 workflows (30% cached ports, two-tier storage C, Execution-Time cost):
./experiments/scripts/run_planner_sweep.sh sweep-time 0 1 0.3 C time \
  eager,eager-materialized,two-layer,one-layer \
  --two-layer-limit-fallback greedy --one-layer-limit-fallback greedy \
  --cutoffs-ms 10,25,50,100

5. Run the End-to-End Consecutive-Execution Benchmark

For a local run on the JVM workflow families (W3: Diamond, W4: Expand, W5: Fanout-4, W6: Fanout-8):

sbt "WorkflowExecutionService/Test/runMain org.apache.texera.amber.bench.reuse.ReuseBenchmark \
  --families p4,expand-loose,fanout4,fanout8 --scale x1 \
  --data-dir experiments/workflows/imdb \
  --strategies none,eager,two-layer,one-layer \
  --repetitions 1 --out experiments/results/local-e2e.csv"

For multi-tier execution across nvme, st1, s3, and sc1 (including W1: Spam and W2: Sentiment with Python UDF and Hugging Face operators), see experiments/README.md and experiments/scripts/run_e2e_benchmark.sh.

About

Chowder: Cache-Aware Dataflow Management across Materialized and Pipelined Executions (Implementation, Experiments, and Full Technical Report)

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages