mz-console-scalability
БесплатноБез исполняемых скриптовНе проверенRun the Console scalability suite against a replayed captured workload and measure what Console load costs mz_catalog_server: a replay-only baseline, the…
от MaterializeInc★ 6 417 звёзд на GitHubОб этом скилле
Console scalability and catalog_server cost
The console-scalability workflow in test/workload-replay/mzcompose.py
boots a captured workload (objects, initial data, hydration), keeps its
ingestions and queries running, and drives the console bundled in the
materialized image against it. Every console query runs on
mz_catalog_server, so its CPU is what limits how many viewers an
environment can hold.
What a run produces
Per workload, in order:
| Phase | Load on top of the replay | Other output |
|---|---|---|
baseline |
none | |
playwright |
the console/e2e-tests/scalability specs, 1 to 6 tabs |
console/test-results/<workload>/, query tables in the log |
k6 |
the suite's captured queries, ramped to 100 virtual users over the SQL HTTP API | console/e2e-tests/k6/{summary,queries}-<workload>.json |
baseline-before-viewers, viewers-<N>, baseline-after-viewers |
with --viewers, N headless viewers holding one page |
console/test-results/catalog-server-<workload>.json holds, per phase:
cores.catalog_server,cores.environmentd: process CPU from /proc in cores. Absolute, not above baseline.nullwhen the process restarted during the phase.scheduled_cores: time inside dataflow operators on catalog_server, split intoindex,subscribe,introspection_subscribeandother.subscribes: open subscribes at the end of the phase, and the console subscribe dataflows' count and average operator count.top_dataflows: the ten non-subscribe dataflows with the most scheduled time, with operator counts.succeeded:falsewhen the suite or k6 exited with an error. The phase still holds what ran before the failure, so checksecondsagainst a normal run before reading it.
With --viewers, viewer_fit.<process>.mcpu_per_viewer is a least-squares
slope through the origin of each step's cores above the mean of the two
viewer baselines, and above_baseline lists the points it was fitted to.
The log ends with the same numbers as a table.
The nightly console-scalability step runs with --skip-large and no
--viewers. Its artifacts carry the first three phases for every workload,
and it uploads one row per phase to the console_scalability_result table
of test analytics.
Run it locally
Before you start
Run from a commit whose images CI has built. mzcompose pulls images by fingerprint and builds the ones ghcr lacks, and a local materialized build is a full Rust cross-compile (budget 100+ GiB of
target-xcompilein a fresh worktree). The materialized image bundles the console, so any file underconsole/changes its fingerprint, untracked files included. Git-ignored files do not count. CI's build step pushes every image it builds, so a pushed branch becomes runnable once its build step for your architecture has finished. Check before starting:bin/mzcompose --find workload-replay config | sed -n 's/.*image: \(ghcr[^ ]*\)/\1/p' | sort -u | while read -r image; do docker image inspect "$image" > /dev/null 2>&1 || docker manifest inspect "$image" > /dev/null 2>&1 \ && echo "ok $image" || echo "MISSING $image" donePython 3.13 must be the
python3on PATH, sincebin/pyactivateruns it. WhenVIRTUAL_ENVpoints at another venv, as VS Code terminals set it,bin/pyactivateinstalls into that venv. SetVIRTUAL_ENV=$PWD/misc/python/venv.Captured workloads come from a private repository the workflow clones into
test/workload-replay/captured-workloads. In a worktree, symlink the main checkout's copy. Workloads taggedsettings.large: truetake far longer and more memory.Keep the host awake and the run detached. Laptop sleep was observed to halt environmentd (exit 166, a persist
Listen ... received a batchhalt after the timestamp jumped), and nothing restarts it, so the run is lost. A command an agent runs in the background is killed at the tool's time limit, which stops the replay. Start the run withnohup caffeinate -dis ... &on AC power and follow the log.caffeinatecannot stop a lid-close sleep on battery.One run per compose project. A run starts by killing and removing every container of its project. Pass
--project-name <name>to run beside another replay.
Command
PYTHONUNBUFFERED=1 nohup caffeinate -dis bin/mzcompose --find workload-replay \
run console-scalability --viewers 10,20,30 --cost-window 120 workload_ddnet.yml \
> console-scalability.log 2>&1 &
grep -E '^\+\+\+|^-- catalog_server cost|Traceback' console-scalability.log
On a laptop this takes about 55 minutes: about 10 to boot and hydrate, 20 for the Playwright suite, 6 for k6, and the rest for the viewer sweep.
| Flag | Default | Notes |
|---|---|---|
--catalog-server-size |
the bootstrap size | Same worker count and CPU limit as M.1-nano. Pin another size to compare. |
--console-bundle |
the image's |
Установить mz-console-scalability в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadGrepGlobFAQ
Что делает скилл mz-console-scalability?
Run the Console scalability suite against a replayed captured workload and measure what Console load costs mz_catalog_server: a replay-only baseline, the Playwright suite, the k6 ramp, and an optional sweep of N headless viewers fitted to CPU per viewer. Trigger: "console scalability test", "run the console against a captured workload", "what does this page cost catalog_server", "cost per viewer", "how many users fit on M.1-nano", "catalog server CPU under console load", or comparing two console versions on catalog_server cost. For one query's plan and latency use mz-query-perf. For SQL throughput benchmarks under test/scalability use mz-benchmark.
Как установить скилл mz-console-scalability?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mz-console-scalability запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic