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).
-
Port-Level Cache Store and Lifecycle Management:
CacheKeyUtil.scala: Computes structural content-addressed SHA-256 keys ((opKey, portId, inputHashes)) bottom-up in topological order over the physical DAG.CachedResult.scalaandExecutionCacheService.scala: Manages the two-level port-result cache store (workflow_id,operator_id,port_id,cache_key), binds cached Iceberg tables across consecutive executions, and handles invalidation and retention.CacheRetention.scala: Enforces retention limits on stored port outputs.WorkflowCompilationResource.scalaandworkflow-cache-panel.component.ts: Exposes per-port cache status in the web interface, including port-level diamond indicators and cache management actions.
-
Sub-Dataflow Identification and Eager Reuse:
SkeletonGenerator.scala: Identifies reusable port outputs and prunes dead upstream sub-DAGs via backward reachability from required outputs (RunSkeleton).CacheReadInputs.scalaandRegionExecutionManager.scala: Rewrites physical input descriptors at reuse boundaries to read directly from cached Iceberg tables and skips pruned upstream regions.CostBasedScheduleGenerator.scala: Integrates Eager Reuse with bottom-up materialization planning on the retained sub-DAG.
-
Unified Execution-Plan Model, Two-Layer Search, and One-Layer Search:
ReusePlanModels.scala: Defines the unified execution-plan representation (TypeAssignmentover the five edge typesPipelined,Materialized,Reuse,Unused, andProduced), structural validity predicates, and conversion toRunSkeletonand materialized edges.TwoLayerScheduleGenerator.scala: Implements the Two-Layer Search planner (outer search over reuse choicesRwith reachability-based pruning of redundant subsets, paired with inner bottom-up materialization search onG(R), plus greedy limit fallback).OneLayerScheduleGenerator.scala,OneLayerSearchOrder.scala, andSeedRules.scala: Implements the One-Layer Search planner in the unified state space, includingUnusedjump propagation (J(Lambda, e)), dead-operator seeding (K), and greedy limit fallback.SubPlanRegionEvaluator.scala,ReuseCostEstimator.scala, andPastExecutionStatistics.scala: Evaluates partial and complete plans for pipelined region validity (no concurrent readers on a shared blocking input and no cycle across pipelined regions) and prices plans under the Execution-Time and Storage-I/O cost models.
-
Benchmark and Experiment Runners:
ReuseBenchmark.scala,ReuseBenchFamilies.scala,PastaFamilies.scala, andSlowTier.scala: End-to-end consecutive-execution benchmark runner across storage tiers (NVMe,EBS st1,Amazon S3, andEBS sc1).ReusePlanningExperiment.scala,PastaPlanReader.scala, andExhaustiveSearch.scala: Offline planner study and ablation runner over the 6,191 real-world workflows in6K-Set.
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 byprepare_datasets.shandgen_reuse_bench_data.pyto generate scaled tables (movies_x1.csv,movies_x20.csv,movies_x100.csv) andtens.csvfor 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.csvanddata/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 (W1throughW6) and storage tiers (nvme,st1,s3,sc1) on AWS EC2c6id.4xlarge.data/calibration/: Per-tier storage and scan calibration measurements (cloud-m1..m4-{nvme,st1,s3,sc1}.csv).data/sweeps-condensed.csv.gzanddata/sweeps-with-greedy-fallback.csv.gz: Recorded per-workflow planning metrics across the 6,191 workflows in6K-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/:gen_eval_figures.py: Generates all eight evaluation PDF figures intoexperiments/figures/from the recorded logs inexperiments/results/.prepare_datasets.sh: Unpacks6K-Setand generates the scaled IMDB tables.run_planner_sweep.sh: Runs the offline planner study and ablations on6K-Set.run_e2e_benchmark.sh: Runs the end-to-end consecutive-execution benchmark across storage tiers.
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 acrossW1throughW6on S3)exp_B6_pasta.pdf(W1: SpamandW2: Sentimentacross consecutive executionsE1throughE4)exp_B1_B2_time.pdf(W3: Diamondon S3,W4: Expandon S3, andW4across all four storage tiers)exp_B3_fanout.pdf(W5: Fanout-4andW6: Fanout-8at 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 across6K-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 across6K-Setand ablations)
./experiments/scripts/prepare_datasets.sh
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"
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
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.