Repository navigation
KafScale 2.0 (preview): kafscale-2-3b, pause_broker / resume_broker (BP/BU codes, v2.2) - #10
Merged
Merged
Conversation
…BP/BU codes, v2.2)
Simulator v2.2 ships a second KafScale version next to 1.6.3: KafScale 2.0
(preview), modeled from KafScale/platform main at d6c4d42. sim-link learns:
- the free-play cluster kafscale-2-3b ("Diskless · KafScale 2.0 (preview)"),
sized exactly like kafscale-3b (the playground's size rules key on the
implementation, not the version). Pinned by seven new SIZE-IMPL fixtures
dumped from the website's TypeScript codec (main d524fa16);
- the action kinds pause_broker / resume_broker (BP:<broker> / BU:<broker>),
KafScale only, in the codec, the MCP tools and the echo;
- the open_scenario description: tracks 00-26 (was 00-13) and the 08.1.x /
08.2.x split; 08.1.5 and 08.2.1-08.2.7 are pinned in TestOpenScenario.
The diskless implementations, their control-plane and object storage codes
ship in simulator v2.2 (v2.3 was folded into it), so the "v2.3" labels in
comments, tool descriptions, README and docs/mapping.md now say v2.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Simulator v2.2 ships a second KafScale version next to 1.6.3: KafScale 2.0 (preview), modeled from KafScale/platform main at d6c4d42 (website PRs #931-#935, #946, #949, all merged). sim-link now knows all of it, so its MCP tools can open and build it.
cluster: "kafscale-2-3b"?cluster=kafscale-2-3bkafscale-3bcluster on KafScale 2.0 (lease fencing, a proxy with a 60 s etcd cache TTL)pause_broker+brokerIdBP:<broker>resume_broker+brokerIdBU:<broker>open_scenario08.1.5,08.2.1-08.2.7?scenario=08.2.4mcpserver/shape.go:kafscale-2-3btopology, the same askafscale-3b(3x3x1 default, caps 9 brokers / 6 partitions, RF 1, no compaction,uploadMsonly). The website sizes both by implementation, not version (clampFreePlaySize/encodeFreePlaySizegive identical output for both).mapping/testdata/ts-fixtures.txt: 7SIZE-IMPL kafscale-2-3blines dumped from the website's TypeScript codec (main d524fa16) with a throwaway tsx script, not checked in. The same script reproduced the existingkafscale-3blines byte for byte.actionlog:PauseBroker(BP) /ResumeBroker(BU), matchingactionLog.tsencodeOne/decodeOne; an empty broker id is an error (the playground drops it).mcpserver/actions.go:pause_broker/resume_broker(they needbrokerId), the echo, and the kind lists.freeplay.inkless/kafscale/automqand the DB/ET/OS codes are all'2.2';mcp-tools.mdxalready says "From v2.2"). Comments, tool descriptions, README anddocs/mapping.mdsaid v2.3 and now say v2.2.Files changed
README.md,docs/mapping.md,actionlog/{actionlog,actions,decode}.go,actionlog/{actionlog,property}_test.go,mapping/testdata/ts-fixtures.txt,mcpserver/{actions,mcpserver,shape}.go,mcpserver/{mcpserver,shape}_test.go.Commands run
go vet ./...,go vet -tags e2e ./e2e/,go test ./...: all pass locally.gofmt -lon the changed files: clean.e2e/run.sh, Docker): not run locally; left to this PR's CI matrix.Tests added
BP:broker-2@1500,BU:broker-2@9000), malformedBP:/BU:, both property generators.kafscale-2-3bpresets and refusals (RF 3, commit interval, compaction, broker cap), unknown-cluster message.TestBuildURLPauseBrokeron both KafScale clusters, ET and OS actions onkafscale-2-3b,open_scenariofor 08.1.5 and 08.2.1-08.2.7.Known risks
kafscale-2-3band dropsBP/BU.Follow-up (not in this PR)
src/flock/tools.ts, the docs index,sim-link.cli.json, their tests, andmcp-tools.mdx(kafscale-2-3b,pause_broker/resume_broker).🤖 Generated with Claude Code