GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Chowder/README.md at main · Texera/Chowder

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
114 lines (85 loc) · 11.1 KB
/

README.md

Copy path

File metadata and controls

114 lines (85 loc) · 11.1 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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/)

  • 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.scala and ExecutionCacheService.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.scala and workflow-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.scala and RegionExecutionManager.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 (TypeAssignment over the five edge types Pipelined, Materialized, Reuse, Unused, and Produced), structural validity predicates, and conversion to RunSkeleton and materialized edges.
    • TwoLayerScheduleGenerator.scala: Implements the Two-Layer Search planner (outer search over reuse choices R with reachability-based pruning of redundant subsets, paired with inner bottom-up materialization search on G(R), plus greedy limit fallback).
    • OneLayerScheduleGenerator.scala, OneLayerSearchOrder.scala, and SeedRules.scala: Implements the One-Layer Search planner in the unified state space, including Unused jump propagation (J(Lambda, e)), dead-operator seeding (K), and greedy limit fallback.
    • SubPlanRegionEvaluator.scala, ReuseCostEstimator.scala, and PastExecutionStatistics.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, and SlowTier.scala: End-to-end consecutive-execution benchmark runner across storage tiers (NVMe, EBS st1, Amazon S3, and EBS sc1).
    • ReusePlanningExperiment.scala, PastaPlanReader.scala, and ExhaustiveSearch.scala: Offline planner study and ablation runner over the 6,191 real-world workflows in 6K-Set.

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/:
    • gen_eval_figures.py: Generates all eight evaluation PDF figures into experiments/figures/ from the recorded logs in experiments/results/.
    • prepare_datasets.sh: Unpacks 6K-Set and generates the scaled IMDB tables.
    • run_planner_sweep.sh: Runs the offline planner study and ablations on 6K-Set.
    • run_e2e_benchmark.sh: Runs the end-to-end consecutive-execution benchmark across storage tiers.

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.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.