Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.77 KB

README.md

File metadata and controls

23 lines (16 loc) · 1.77 KB

usecase-study

The five use cases of the use-case study: the workloads they run, and the code that scores a system's answers to them.

Path What it holds
workloads/ One WorkloadSpec per use case and dataset: uc1_syn_flood (DDoS detection), uc2_autoscaling (resource scaling), uc3_video (video experience), uc4_canary (canary release), uc5_top_clients (rate limiting). A file without _real generates its data; a file with _real imports a recorded dataset (CAIDA, MAWI, NASA and others) from $ASAP_DATASETS.
src/data.rs Reads a workload and holds its series.
src/accuracy.rs Re-exports the declared-truth types of aqpbm-core that scoring uses.
src/score.rs Scores answers against each query's declared truth and against the exact answers.
src/output.rs The output file layout: answers, scores and costs per query.
tests/ Checks on the generated data and on scoring use case 1.

A _real file reads tables under $ASAP_DATASETS/converted/. They are made from the downloaded traces by scripts/dataset_tools/real_data.py (use cases 1, 2, 4 and 5) and scripts/dataset_tools/real_data_video.py (use case 3).

To run a use case:

  • in process, with ASAPPlanner's plans: python3 scripts/use_cases/run_use_case.py <N>, after cargo build --release -p system-bench --features planeval
  • on VictoriaMetrics and ASAPQuery-backend: python3 scripts/use_cases/run_use_case_on_systems.py <N> (see the README's Quickstart)

<N> is 1 to 5; --real reads the recorded data instead.

The rules each use case applies to the answers, and the scripts that run the study, are in scripts/use_cases/ (one module per use case in scripts/use_cases/cases/). The pages in docs/phase2-use-cases/ describe each use case and its results.