Monedula

Playground URL format

The public specification of the playground URL: the scenario, action-log and cluster-shape parameters a tool or an AI agent can generate.

Reference 6 of 6

Updated 1 December 2026

Markdown

On this page

The playground keeps its whole state in the query string, so a link can open a scripted scenario, replay a sequence of cluster operations, or stand up a custom free-play cluster. This is the grammar, stable and versioned, for anything that generates those links - a script, a CI job, or an AI agent. monedula-sim-link is a reference generator: it snapshots a live cluster into a link, and its MCP server lets an agent build one.

Status: stable / persistence layer · Audience: authors of tools (e.g. an MCP server) that programmatically GENERATE links opening a specific scenario or a pre‑built free‑play session in the playground.

monedula-sim-link - a CLI that turns a live cluster into a link, and an MCP server that lets an AI agent build one - is a reference generator for this format.

The playground’s own implementation is the source of this document, and every example string in it is decoded verbatim by the simulator’s own test suite, so the document cannot silently rot.


1. Base URL and recognized query parameters

The playground is served at:

https://monedula.dev/kafka-simulator/playground

A playback-only view for other sites to frame is served at /kafka-simulator/embed/ and reads a subset of the same parameters (§16).

State lives entirely in the query string. The playground reads exactly the following parameters; anything else is ignored. It WRITES them in this order (scenario, t, then the optional ones), but reading does not depend on order.

Param Read by Meaning Default when absent
scenario always Scenario id to open. free selects free‑play. Legacy flat ids (01-41) still resolve via an internal alias. Dotted scenario ids were renumbered on 2026-11-14 (one track per library group) and shifted on 2026-11-15 (tracks 10-21 became 15-26); an old id still opens its scenario unless it is now another scenario’s id. free (free‑play)
t always Integer frame index to open at (for a forked sandbox, also the frame it forks from). Parsed with parseInt; a non‑finite or negative value falls back to 0, and one past the last frame opens on the last frame. 0
actions always The action log - a scripted set of sandbox operations to replay on load. See §2/§3. Presence of ≥1 decoded action forces sandbox mode even for a scripted scenario. none (no actions)
cluster only when scenario=free Free‑play topology. One of single-dc, active-passive, active-active, stretched-2-5, stretched-3, diskless-3az (v2.0+), inkless-3az, kafscale-3b (kafscale-2-3b opens it too), automq-3az (v2.2), warpstream-3az, redpanda-3az, ursa-3az, nisshi-3b (v2.3), streamhouse, streamhouseConfluent, streamhouseRedpanda, streamhouseAiven, streamhouseUrsa (v3.0, next; Aiven experimental), streamhouseFluss, fluss or iggy (v3.1); §10. Ignored (and not written) for non‑free scenarios or when equal to the default. single-dc
size only when scenario=free Free‑play cluster shape (brokers/partitions/RF, extra topics, producers, groups, racks, regions, links, engine timing, seed, …). An x‑delimited serialization, decoded field‑by‑field in §11. Omitted when it equals the topology default. topology default size
panels always Which of the three panels are visible: a subsequence of lrb (left / right / bottom). Omitted when all three are shown. all three
view always (stored in any scenario) The canvas view: brokers (a strip per replica), lanes (a row per partition, its replicas on one offset axis) or matrix (a topics x brokers table). lanes is honoured in any scenario the canvas draws as one DC (no regions, brokers in fewer than two DCs, no DC-assigned controllers), curated ones included; matrix only when scenario=free and cluster=single-dc. A view the scenario does not offer is kept but ignored. Omitted when the playground picks the view itself, which it does from the cluster’s size: Matrix once the per-replica scene would be over twice the fixed 560-unit wide base height of the per-replica canvas, so a shared link opens in the same view on every screen. Lanes is never picked automatically. automatic
lens always (stored in any scenario) What the Matrix view sorts its topics by: failures, balance, lag or traffic. Honoured only while the Matrix view is showing; kept but ignored otherwise. Omitted for failures. failures
select always The selected canvas entity (broker / partition / …), encoded in a form private to the playground (a generator never needs to produce it). View state only - never affects the cluster. no selection

Generator guidance: to open a scenario or free‑play session you only ever need scenario and (optionally) actions, plus cluster/size for a non‑default free‑play shape. t, panels, view, lens and select are view state and can be omitted. Leave size off unless you must reproduce an exact custom cluster shape - omitting it yields the topology’s default cluster, against which most action logs are written.


2. The action log - plain grammar

actions is a plain‑text log by default (a compressed form kicks in only past a length threshold - see §4). The plain grammar is human‑readable and is what every legacy/shared URL already carries.

2.1 Structure

<entry>,<entry>,<entry>…
  • Entry separator: , (comma). Entries are split on top‑level commas.
  • Each entry is <KIND>:<payload>@<at>:
    • <KIND> - an uppercase kind code (K, AC, CRF, …). Split is on the FIRST :.
    • @<at> - split is on the LAST @; <at> is the integer simulation time in milliseconds. It must be a canonical integer: String(parseInt(at)) === at (so 08500 or 1e3 are rejected).
    • The decoder SORTS the decoded entries by at ascending, so entries need not be emitted in order - but see the truncation rule in §4.
  • Separator alphabet inside a payload: : (field), @ (time), , (entry - hence escaped inside values), . (list items: replica lists, share‑member lists, network‑partition brokers), ~ (sub‑list join for multi‑topic groups, authz fields and the add_group settings pairs; also the value‑escape char), = (an add_group setting’s name from its value, §2.4), | (network‑partition group separator).

2.2 Escaping

These fields are reversibly escaped so their free text can carry the separator characters; everything else is emitted raw and therefore must avoid the separators:

  • produce_record VALUE (the v= segment): ~ → ~t, then , → ~c. Decode reverses ~c then ~t. A value may thus contain ,, ~ and : safely (: needs no escape - the decoder rejoins the value from the tail).
  • produce_record KEY: ~ → ~t, , → ~c, : → ~s. Decode reverses ~c, ~s, then ~t (~t last, so a decoded ~/:/, can’t re‑form a marker). Unlike the value, the key is a fixed field (not the tail), so a : in it would shift the field count - hence the extra : → ~s. A key WITHOUT ~/,/: is emitted byte‑identically, so the escape only changes keys that previously corrupted.
  • add_acl / remove_acl PRINCIPAL and RESOURCE NAME, bind_role PRINCIPAL and ROLE, and assign_principal TARGET ID and PRINCIPAL: ~ → ~-, , → ~_. These fields are joined by ~, so the markers deliberately differ from the produce markers: after the escape every ~ is followed by -/_, and the decoder splits only on a ~ NOT followed by one of those two. A field WITHOUT ~/, is emitted byte‑identically (the plain principal~resourceName~codes / principal~role / p|c~targetId~principal form of every legacy link is unchanged). The fixed p/c target code in assign_principal is never escaped.
  • add_group SETTING VALUES (the fourth field, §2.4) use the same ~ → ~-, , → ~_ escape. Every pair starts with its setting name, so a pair boundary is never followed by -/_ and no ~~~ guard is needed.
  • config_change VALUE has a one‑way comma escape: , → ~ (unchanged, so cleanupPolicy compact,delete → compact~delete and every existing link stay byte‑stable). It is not reversible: ~, : and @ cannot ride a config value, so the one free‑text config value (the producer’s fixed keyValue) is guarded at the input, which strips those three characters (a , is fine). Every other config value is a closed enum / integer.

Everything else - broker ids, topic names, producer/consumer/group/member ids - is emitted raw. Generators MUST keep the relevant separator characters out of those fields (see §7).

2.3 Kind‑by‑kind field layout

<at> (the trailing @<at>) is omitted from the payload column below for brevity; it is always present.

Action kind Encoding (payload before @<at>) Notes
kill_broker K:<brokerId> or K:<brokerId>:g :g = graceful; no suffix = hard
restart_broker R:<brokerId>
kill_consumer KC:<consumerId>
restart_consumer RC:<consumerId>
add_consumer AC:<groupId>:<memberId>
remove_consumer RM:<groupId>:<memberId>
add_group AG:<groupId>:<topic> or AG:<groupId>:<t1~t2~…>, optionally …:e/:l/:n, optionally …:<reset>:<settings> ≥2 topics ⇒ ~‑joined; topics[0] becomes topic. The optional third field is an explicit auto.offset.reset (earliest / latest / none); absent, a new group starts at the high watermark. Any other code drops the entry. The optional fourth field holds the group’s settings (§2.4); the third field is then empty when there is no reset (AG:g1:orders::region=west)
remove_group RG:<groupId>
add_share_group ASG:<groupId>:<topic> or ASG:<groupId>:<topic>:<m1.m2.…> members .‑joined, optional
remove_share_group RSG:<groupId>
add_share_member ASM:<groupId>:<memberId>
remove_share_member RSM:<groupId>:<memberId>
add_producer AP:<producerId> or AP:<producerId>:<topic> topic pins per‑topic routing
remove_producer RP:<producerId>
reset_producer XP:<producerId> recovers a fatally‑errored producer
add_broker AB:<brokerId> or AB:<brokerId>:<rack> rack pins placement
remove_broker RB:<brokerId>
remove_topic RT:<topic> free play: deletes an additional topic from the live cluster; the topic stays in the size until the next structural rebuild, so a link replays it existing from the start and deleted at this time
set_replica_speed SR:<brokerId>:<0|1> 1 = slow, 0 = normal
set_replication_speed MR:<code> 0 normal / s slow / 1 very‑slow / x stopped
kill_controller KQ:<id>
restart_controller RQ:<id>
add_controller_observer OQ:<id> KIP-853: a new controller <id> starts and joins the quorum as an observer (replicates __cluster_metadata, no vote)
add_controller AQ:<id> KIP-853 kafka-metadata-quorum add-controller: observer <id> becomes a voter; refused (controller_membership_rejected) until it has caught up
remove_controller DQ:<id> KIP-853 kafka-metadata-quorum remove-controller: voter <id> (dead or alive) leaves the voter set
partition_network NP:<g1>|<g2>[|…] groups by |, brokers within a group by .; needs ≥2 groups
heal_network NH:1 payload is a literal 1
stop_coordinator_db DB:0 Inkless only (v2.2): stops the PostgreSQL batch coordinator; a no‑op on any other cluster
start_coordinator_db DB:1 Inkless only (v2.2): starts it again
stop_etcd ET:0 KafScale only (v2.2): stops etcd (leases, end offsets, group state); a no-op on any other cluster. In the sandbox: Failure panel, etcd row (Diskless · KafScale)
start_etcd ET:1 KafScale only (v2.2): starts it again; leases whose TTL ran out meanwhile expire at once. In the sandbox: Failure panel, etcd row
pause_broker BP:<broker> KafScale only (v2.2): freezes a broker (SIGSTOP, a long GC pause); its requests time out and its partition leases expire after the 10 s TTL. A no-op on any other cluster, and on a dead or paused broker. In the sandbox: Failure panel, Brokers list (pause)
resume_broker BU:<broker> KafScale only (v2.2): wakes a paused broker (SIGCONT). If its etcd session expired meanwhile, it drops its partition logs and restores from etcd and S3 before it writes again. A no-op on any other cluster and on a running broker. In the sandbox: Failure panel, Brokers list (resume)
stop_object_storage OS:0 Diskless (v2.2, every implementation): object storage becomes unavailable; a no-op without diskless topics. In the sandbox: the object storage Inspector (?select=objectStorage)
slow_object_storage OS:s Diskless (v2.2): every object storage operation takes 2 s
start_object_storage OS:1 Diskless (v2.2): object storage is available again (KafScale’s S3 health monitor still refuses until 60 s after its last bad sample)
stop_control_plane CP:0 WarpStream only (v2.3): the hosted control plane becomes unreachable; produce is rejected (or journaled under Ripcord) and consumers stop. A no-op on any other cluster and when it is already down
start_control_plane CP:1 WarpStream only (v2.3): the control plane is reachable again and commits the journal (Ripcord, lightning topics) in order
iceberg_op IO:<op request as JSON> Streamhouse only (v3.0, next): one Iceberg table operation. The tail is the op request as JSON, escaped like a produce value (~ becomes ~t, , becomes ~c; : and @ need no escape). The op is one of create_table, append, delete, update, merge, equality_delete, rewrite_data_files, rewrite_position_delete_files, rewrite_manifests, create_tag, create_branch, replace_ref, drop_ref, fast_forward, rollback, set_current, cherrypick, expire_snapshots, remove_orphan_files, set_properties, upgrade_format, update_schema, update_spec, replace_sort_order, catalog_down, catalog_up; the other fields are that operation’s input. A build without the streamhouse feature, JSON that does not parse and a request of the wrong shape are all skipped like an unknown kind. Example: IO:{"op":"set_properties"~c"table":"orders"~c"updates":{"write.target-file-size-bytes":"134217728"}~c"removals":[]}@5000. An append of one data file: IO:{"op":"append"~c"input":{"table":"orders"~c"dataFiles":[{"specId":0~c"partition":{}~c"recordCount":100~c"sizeBytes":4096~c"stats":{}}]}}@6000
fluss_op FLO:<op as JSON> Apache Fluss only (v3.1, gated by freeplay.flussStreamhouse, not IO:’s gate): one action on a Fluss cluster. The tail is the op as JSON, escaped as for IO:. The op is write (a log table’s append: writerId, row: column values, each a string, a number or null), upsert (a primary-key table: writerId, row), delete (a primary-key table: writerId, key: the primary key columns), kill_server or restart_server (server, a TabletServer id such as ts-1), kill_coordinator or restart_coordinator, stop_tiering_job, start_tiering_job, pause_tiering_job or crash_tiering_after_lake_commit (job, a tiering job id such as tiering-job-1), lake_catalog_down or lake_catalog_up, or resubscribe (scannerId such as scanner-1, optional from earliest, latest or timestamp, and with timestamp an optional timestamp, a run time in ms; without from the scanner’s own scan.startup.mode (§11.3, .u): the scanner subscribes again, at the log start, the high watermark, or the first record appended at or after the timestamp). JSON that does not parse and an op of the wrong shape are skipped like an unknown kind. Example: FLO:{"op":"kill_server"~c"server":"ts-1"}@4000
iggy_op IGO:<op as JSON> Apache Iggy only (v3.1, gated by freeplay.iggy; cluster=iggy): one action on an Iggy cluster. The tail is the op as JSON, escaped as for IO:. The op is send (producerId, messages: 1 to 1000 strings, and at most one of key, a string of 1 to 255 bytes routed by XxHash32, or partition, an id; neither is the producer’s balanced round-robin), lose_reply (producerId: its next reply is lost), retry (producerId, session same or new: resend the uncertain batches), poll (consumerId, partition, strategy {"kind":"offset"|"timestamp","value":n} or {"kind":"first"|"last"|"next"}, optional count), store_offset (consumerId, partition, optional offset, default the last one received), delete_offset (consumerId, partition: DeleteConsumerOffset, removes the stored offset of that partition, a standalone consumer’s or, for a group consumer, its group’s on a partition it owns; refused when none is stored; a Next poll then reads from the start and the offset no longer holds retention back), kill_node (node, such as node-0, mode sigkill or graceful), restart_node (node), create_group or delete_group (stream, topic, group: a consumer group of that topic, name 1 to 255 bytes), or join_group, leave_group, go_silent or disconnect (consumerId of a group consumer: it joins or leaves its group, stops sending anything with its connection open, evicted about 2.4 x heartbeat.interval after it was last heard, or closes its connection, evicted 1.2 x after the close), or set_retention (stream, topic, messageExpiryMs and maxTopicSize, each a positive integer or null for none: the topic’s message_expiry in milliseconds and max_topic_size in bytes, at least the topic’s segment_size; the node’s segment cleaner enforces them on its tick), or create_partitions and delete_partitions (stream, topic, count at least 1: CreatePartitions appends count empty partitions with the next ids, placed as at the topic’s create; DeletePartitions removes the last count with their messages and stored offsets, at least one stays (simulator choice); under Iggy’s default partition_resize_policy mutable, a key’s partition is its hash modulo the new count, and the topic’s groups rebalance), or slow_node (node, slow true or false: in a cluster of two or three nodes, the node’s replica path turns slow, so its copies journal no prepares and fall behind, or comes back and its copies catch up by state transfer; a single node ignores it). The Kafka gateway’s ops (spec 2026-11-28-kafka-sim-iggy-kafka-gateway-design.md, GW4 to GW10) decode only where freeplay.iggyKafkaGateway is on and act only with the gateway knob on (§11.3, .k): kafka_send (producerId of a Kafka producer such as kp1, values: 1 to 1000 strings, one record each, optional key: the Kafka client picks the partition, murmur2 of the key or a new sticky partition each send; a topic the gateway does not know is refused with UNKNOWN_TOPIC_OR_PARTITION (3), and a transactional producer with UNSUPPORTED_VERSION (35)), gateway_down and gateway_up (no fields: the gateway process stops, or starts again; its Kafka groups start from nothing and their members rejoin, and the Kafka producers resend what the stop left uncertain in new Iggy sessions), kafka_create_topic (topic, partitions 1 to 1000, optional replicationFactor, only 1 or -1, else INVALID_REPLICATION_FACTOR, and optional configs, an object of strings, any of which is refused with INVALID_CONFIG: CreateTopics, an Iggy topic of that name in the stream kafka on Iggy’s defaults), kafka_delete_topic (topic: DeleteTopics; the Iggy topic goes, the stream stays), kafka_alter_retention (topic, retentionMs, a positive integer or null for -1, no expiry: AlterConfigs of retention.ms, the topic’s message_expiry), kafka_join, kafka_leave, kafka_crash or kafka_commit (consumerId of a Kafka consumer such as kc1: it starts, an assign() consumer on its partitions and a subscriber by joining its group; it closes, committing with auto-commit and leaving its group; its process dies, so it stays silent in its group until its session expires; or it commits its positions with commitSync), and store_external_offset (client, stream, topic, partition, group, and offset, an integer: StoreConsumerOffset with ConsumerKind::ExternalGroup, the gateway’s OffsetCommit under the Iggy consumer group group, created first when the topic has none; a negative offset deletes the key). In a cluster, kill_node of a partition’s primary starts a view change after the heartbeat timeout and clients re-route to the new primary. JSON that does not parse and an op of the wrong shape are skipped like an unknown kind. Example: IGO:{"op":"kill_node"~c"node":"node-0"~c"mode":"sigkill"}@4000
rabbitmq_op RMQ:<op as JSON> RabbitMQ only (v3.1, gated by freeplay.rabbitmq): one action on a RabbitMQ cluster. The tail is the op as JSON, escaped as for IO:. The op is publish (publisher, key: the routing key, optional body and headers), ack or nack_requeue (consumer, tag: the delivery tag, optional multiple), reject_requeue or reject (consumer, tag), consumer_crash, consumer_leave or consumer_join (consumer), bind or unbind (exchange, to: a queue, optional key), set_policy (queue, optional deliveryLimit, -1 for none, deadLetterExchange, null for none, maxLength and maxLengthBytes, an integer or null for none, and overflow drop-head or reject-publish: a quorum queue’s x-max-length, x-max-length-bytes (100 bytes a message) and x-overflow; reject-publish-dlx is refused, as quorum queues do not support it), declare_queue (queue, optional groupSize and node), or kill_node, stop_node or restart_node (node, such as rabbit-2); for streams, stream_publish (producer, optional body, optional publishingId to resend one), stream_producer_restart (producer), store_offset (consumer, optional offset, default the last one read), stream_subscribe (consumer, offset first, last, next or a number), stream_consumer_restart (consumer), set_stream_policy (stream, optional maxAgeMs and maxLengthBytes, null for none) or declare_stream (stream, optional node and initialClusterSize); for failures, partition_network (isolate: the nodes cut off from the rest), heal_network, disk_alarm (node, on true or false), lose_next_confirm or republish_unconfirmed (client: a publisher or a stream producer). bind, unbind, set_policy (which also takes consumerTimeoutMs) and set_stream_policy take an optional node, the client’s node. JSON that does not parse and an op of the wrong shape are skipped like an unknown kind. Example: RMQ:{"op":"kill_node"~c"node":"rabbit-2"}@4000
kill_connect_worker KCW:<workerId> Streamhouse only (v3.0, next): the Kafka Connect worker <workerId> (connect-1, …) dies; its tasks move to the surviving workers after the rebalance delay. Skipped on a build without the streamhouse feature. Example: KCW:connect-1@8000
restart_connect_worker RCW:<workerId> Streamhouse only (v3.0, next): the worker is started again and rejoins the Connect group. Example: RCW:connect-1@20000
restart_connector RCN:<name> Streamhouse only (v3.0, next): restarts the sink connector <name> (the preset’s is orders-sink), for example after it failed. Example: RCN:orders-sink@25000. The three together: KCW:connect-1@8000,RCW:connect-1@20000,RCN:orders-sink@25000
set_sink_commit_branch SCB:<name>:<branch> Streamhouse only (v3.0, next): points the sink connector <name>’s iceberg.tables.default-commit-branch at <branch>, a connector config update (Connect restarts its tasks; the next round commits to the branch, main stays). An empty <branch> (or main) is main. Both escaped like a produce value (~ becomes ~t, , becomes ~c), the name also with : as ~k; the first : ends the name. A branch the table lacks is refused (simulator choice: create it first with IO: create_branch). Write, audit, publish: SCB:orders-sink:audit@9000,SCB:orders-sink:@20000
enable_tableflow TFE:<topic> Confluent (v3.0, next): switches Tableflow on for the declared topic <topic>, escaped like a produce value (~ becomes ~t, , becomes ~c; : and @ need no escape). Skipped on a build without the streamhouse feature, and for an empty topic. Example: TFE:orders@5000
disable_tableflow TFD:<topic> Confluent (v3.0, next): switches Tableflow off for <topic>; same escaping as TFE; an empty topic is skipped. Example: TFD:orders@9000
resume_tableflow TFR:<topic> Confluent (v3.0, next): resumes a suspended Tableflow topic; same escaping as TFE; an empty topic is skipped. Example: TFR:orders@12000
set_tableflow_error_mode TFM:<topic>:<mode> Confluent (v3.0, next): what Tableflow does with a record it cannot materialize. <mode> is suspend, skip or log, read after the last :; the topic is escaped like TFE. An unknown mode or an empty topic is skipped. Example: TFM:orders:skip@6000
enable_lightning_table LTE:<topic> Confluent (v3.0, next): switches a Lightning Table on for <topic>; same escaping as TFE; an empty topic is skipped. On a Lightning cluster any existing topic works, one the preset did not declare included (it is declared first; not an internal __ topic or error_log); it needs <topic>-value registered. Example: LTE:orders@5000
disable_lightning_table LTD:<topic> Confluent (v3.0, next): switches the Lightning Table off; same escaping as TFE; an empty topic is skipped. Example: LTD:orders@9000
set_redpanda_iceberg_mode ITM:<topic>:<mode> Redpanda Iceberg Topics (v3.0, next): sets redpanda.iceberg.mode of a declared Tiered Storage topic. <mode> is key_value, value_schema_id_prefix, value_schema_latest or disabled, read after the last :; the topic is escaped like TFE. Enabling a disabled topic starts translation at the last stable offset (no backfill). Skipped on a build without the streamhouse feature, and like an unknown kind for an unknown mode or an empty topic. Example: ITM:orders:value_schema_latest@5000
set_redpanda_iceberg_invalid_record_action ITA:<topic>:<dlq_table|drop> Redpanda Iceberg Topics (v3.0, next): sets redpanda.iceberg.invalid.record.action of a declared topic: an invalid record goes to the <topic>~dlq table (dlq_table) or is dropped (drop). Read after the last :; the topic is escaped like TFE. Skipped on a build without the streamhouse feature, and like an unknown kind for an unknown action or an empty topic. Example: ITA:orders:drop@6000
set_redpanda_schema_registry ITR:<1|0> Redpanda Iceberg Topics (v3.0, next): the simulator’s Schema Registry switch (a simulator fault, not a Redpanda setting). 0 makes the registry unavailable: translation pauses at the first schema version it has not cached, and schema registrations and compatibility changes are refused; 1 brings it back. Skipped on a build without the streamhouse feature, and like an unknown kind for any other payload. Example: ITR:0@7000
register_schema (with a labelled change) RSE:<subject>:<bf>:<kind>[:<field>][:<to>] Confluent (v3.0, next): registers a schema version and labels the change, so the Lightning schema trap and the Inspector can name it. <bf> is the two flags of RSV (1 compatible / 0 breaking, backward then forward). <kind> is add_optional, drop, rename, reorder, add_required, key_change or revert. Subject and field are escaped like a produce key (no :). <field> names the touched field. <to> is the version a revert returns to and is required for revert. For a non-revert kind a to without a field keeps an empty field segment, so the number is never read as a field. For revert there is no such segment: a revert with only a to is RSE:s:11:revert:2, and with a field it is RSE:s:11:revert:<field>:2. Skipped on a build without the streamhouse feature, and skipped like an unknown kind when the subject is empty, the flags are not two of 0/1, the kind is unknown, a to is not a number or a revert has no to. Examples: RSE:orders-value:00:drop:amount@8000, RSE:orders-value:11:revert:2@12000, RSE:orders-value:11:revert:amount:2@12000. A plain registration stays RSV, byte-stable
partition_dc PD:<dc>
kill_dc KD:<dc>
kill_kraft KK:<dc>
restart_kraft RK:<dc>
kill_zk KZ:<id>
restart_zk RZ:<id>
config_change C:<dotted.path>:<value> value comma‑escaped ,→~; path/value whitelist §6
produce_record P:<producerId>:<topic>[:<key>] (value‑less) or P:<producerId>:<topic>:<key>:<valSeg> key escaped ~t/~c/~s (§2.2); valSeg = t (tombstone/null) or v=<escaped>; empty key segment ⇒ keyless; a schema version stamp is an s=<n> field (positive integer) after the key: P:<producerId>:<topic>:<key>:s=<n>[:<valSeg>]
failover FO:<toRegion>
promote_mirror PM:<topic>[:<region>] <topic> is the mirror topic (a cluster link keeps the source name, so orders may exist in several regions); optional <region> names the read‑only copy, else the region the cluster link into <topic> implies. Planned: refused (mirror_promote_rejected) while the mirror lags or the source is unreachable
failover_mirror FM:<topic>[:<region>] same <topic>/<region> rule as PM; immediate, regardless of lag/reachability; un‑mirrored records are lost (RPO); the link is kept stopped for a later SW truncate‑and‑restore. On a KIP‑1279 cluster mirror this is kafka-cluster-mirrors --stop: transactions still open at the source are also aborted on the mirror
switch_cluster_link SW:<topic>[:<region>] same <topic>/<region> rule as PM; planned reversal needs lag 0 + reachable source; after FM on the same topic it truncates the old source’s divergent tail, then reverses
pause_mirror CMP:<topic>[:<region>] KIP‑1279 cluster mirror only (no‑op otherwise): kafka-cluster-mirrors --pause, fetchers removed, the mirror stays read‑only
resume_mirror CMR:<topic>[:<region>] KIP‑1279 cluster mirror only: --resume, fetching restarts from the mirror’s log end offset
restart_mirror_worker MW:<linkId> MM2 links only (a cluster link has no Connect worker: no‑op); re‑produces the uncommitted batch as duplicates
reassign_partition RA:<topic>:<partition>:<b1.b2.…> replicas .‑joined
change_replication_factor CRF:<topic>:<targetRf>
promote_observer PO:<topic>:<partition>:<broker>
begin_transaction BT:<producerId>
commit_transaction CT:<producerId>
abort_transaction AT:<producerId>
share_ack SA:<groupId>:<partition>:<offset>:<ackType> ackType ∈ accept/release/reject/renew
send_offsets_to_txn SO:<producerId>:<groupId>
tier_offload TO:<topic>:<partition>:<toOffset> toOffset ≥ 0
delete_records DR:<topic>:<partition>:<toOffset> Wire bridge (v2.4): a real admin client’s DeleteRecords; moves the log start to toOffset ≥ 0 (clamped to the high watermark). A no-op on a topic the link does not have, a compact-only topic or a partition with no live leader; skipped on a build without the freeplay.bridge feature. Example: DR:orders:0:42@9600
inject_produce_fault IPF:<producerId>:<fault> fault ∈ drop_ack/drop_batch
stall_consumer SC:<consumerId>
resume_consumer RSC:<consumerId>
register_schema RSV:<subject>:<backward><forward> each flag 1(compatible)/0(breaking)
set_schema_compatibility SSC:<subject>:<modeCode> b backward / f forward / x full / n none
kill_sr KSR:<instanceId> v2.2 preview: stops one Schema Registry instance; the SR leader is re‑elected on the same step
restart_sr RSR:<instanceId> v2.2 preview
sr_failover SFO:<deploymentId> v2.2 preview: a follower‑only deployment on a mirrored _schemas takes over writes (fails the _schemas mirror over, makes its instances leader‑eligible); no‑op for any other deployment
restart_producer RPR:<producerId>, RPR:<producerId>:n or RPR:<producerId>:n<backward><forward> v2.2 preview: the producer restarts with an empty schema cache; :n deploys the next schema version of its subject, the flags (1 compatible / 0 not) say how it changed when not compatible both ways
deploy_consumer_schema CRS:<groupId>:g, CRS:<groupId>:l:<subject> or CRS:<groupId>:s<version>[c<backward><forward>]:<subject> the group redeploys its deserializer with an empty schema cache: g generic reader (reads with the writer schema), l use.latest.version, s a specific reader on that version; the flags only when that version is not compatible both ways with its predecessor
set_sr_eligibility SRE:<instanceId>:<1|0> v2.2 preview: leader.eligibility of one SR instance, 1 = may lead, 0 = follower‑only
add_acl ACL:<principal>~<resourceName>~<op><type><perm> principal / resourceName escaped ~-/~_ (§2.2); op r/w/c/d/a, type t/g/k, perm 1 allow / 0 deny
remove_acl RACL:<principal>~<resourceName>~<op><type><perm> same escaping + codes as add_acl
bind_role BR:<principal>~<role> principal / role escaped ~-/~_ (§2.2)
assign_principal PR:<p|c>~<targetId>~<principal> p = producer target, c = consumer target; targetId / principal escaped ~-/~_ (§2.2)
elect_preferred_leaders EL:<topic> or EL:* * = all‑topic‑partitions (no topic scope); <topic> scopes to one topic. * is not a legal topic name, so the two never collide

Non‑encodable kinds. The encoder THROWS for engine‑internal / scenario‑only actions: tick, run_compaction, run_retention, reassign_rack_aware. Generators must never emit these - there is no URL grammar for them. (elect_preferred_leaders USED to be here; it became encodable as the EL kind when the CLI terminal wired kafka-leader-election --election-type preferred.)

2.4 The add_group settings field

An add_group can create the group with its settings. The terminal’s kafka-consumer-groups --reset-offsets --execute rebuilds a group this way, so the rebuilt group keeps its settings - on an active‑active cluster, its region pin. The settings ride a fourth field:

AG:<groupId>:<topics>:<reset>:<name>=<value>~<name>=<value>…
  • <reset> is the e/l/n code, or empty when the action has none.
  • One <name>=<value> pair per setting the group carries, joined by ~. The encoder writes them in the order of the table below; the decoder accepts any order.
  • Each value is escaped like an authz field (§2.2): ~ → ~-, , → ~_. A ~ followed by -/_ is therefore an escaped character, and any other ~ starts the next pair. : needs no escape (the field is the rest of the entry), nor does = (a pair splits on its first =).
  • The field is strict: an empty field, an unknown or repeated name, or a value outside its domain drops the whole entry rather than building the group with a setting missing.
  • A group with no settings has no fourth field, so every add_group written before this field existed decodes exactly as it did.
Name Value
region the region the group is pinned to (it reads only that region’s copies of its topics); any string
assignor range / roundrobin / sticky / cooperative-sticky
isolationLevel read_committed / read_uncommitted
autoCommit true / false
pollMs integer (the domain of consumer.pollMs, §6; 0 or less stops the poll loop)
maxPollRecords integer ≥ 1
maxPollIntervalMs integer ≥ 1
rack the group’s client.rack; any string
principal the principal the group authenticates as; any string

3. Failure & tolerance behavior generators must plan for

  • Tolerant‑drop (silent data loss). The decoder splits on , and decodes each entry independently; any entry it cannot parse is dropped silently, and the remaining valid entries still load. There is no error surfaced. Treat a malformed entry as data loss, not an error - validate your output before shipping a link. Reasons an entry is dropped: no @, non‑canonical at, no :, empty payload, unknown kind, wrong arity for the kind, or a config_change whose path/value is not on the whitelist (§6).
  • MAX_URL_ACTIONS = 2000. After the ascending sort, only the earliest 2000 actions are kept; the rest are dropped and a one‑time truncation notice is surfaced to the user (with the number of dropped actions). Because the cap keeps the earliest, a generator that exceeds it silently loses the TAIL of the session.
  • MAX_DECODED_CHARS = 500 000. A plain (or decompressed) payload longer than this is rejected wholesale → an empty action log and a dropped count of 0 (a warning is logged). This is a DoS guard; stay far below it.

Decoding NEVER throws - malformed input always yields a valid array (possibly empty).


4. The compressed form

The playground chooses the representation when it writes actions:

  • Plain by default. If the plain string length ≤ COMPRESSION_THRESHOLD (1500) it is emitted verbatim (no prefix).
  • Compressed past the threshold. Longer logs become ~1 + a base64url‑encoded compressed blob. The ~1 prefix is unambiguous - a plain entry always starts with an uppercase kind code, never ~. base64url (not the +// alphabet) is used so the value survives a URLSearchParams round‑trip.
  • Incompressible fallback. If the compressed form is not strictly shorter than the plain form, the plain form is emitted instead. So a ~1 value is guaranteed shorter than the equivalent plain log.

4.1 Two accepted byte layouts under ~1

The ~1 version covers two compression layouts, and the decoder accepts both (it tries raw DEFLATE first - a self‑validating, fail‑fast inflate - and falls back to lz‑string):

Layout Bytes after ~1 Who produces it
lz‑string base64url(lz-string.compressToBase64(plain)) What the playground EMITS and every shared link already in the wild.
raw DEFLATE base64url(deflate(plain)) - RFC 1951, no zlib/gzip wrapper The monedula-sim-link Go generator (compress/flate); equivalently zlib.deflateRawSync / fflate.deflateSync.
  • The playground emits the lz‑string layout. lz‑string is already a runtime dependency, so emitting it needs no extra in‑browser deflate encoder - the smaller bundle. Both layouts decode, so a generator may emit either.
  • Discrimination is deterministic. Raw DEFLATE is a complete, self‑checking bitstream, so an lz‑string blob almost never inflates as valid DEFLATE; when it does, the decoder additionally requires the result to start with an uppercase kind code before preferring it. Otherwise it falls back to lz‑string, so every legacy lz‑string link decodes exactly as before.
  • MAX_DECODED_CHARS (§3) caps both layouts: a payload that inflates past 500 000 chars is rejected wholesale to [].

Decode routes on the ~1 prefix; a malformed/garbage compressed value (of either layout) decodes to [] (tolerant). Empty log ⇒ no value is written and the actions param is omitted entirely.

Generator guidance: prefer producing the plain form and keeping it under 1500 chars - it is human‑readable, debuggable and future‑proof. If you must compress, the raw DEFLATE + base64url layout is the simplest to produce outside a browser (compress/flate, zlib.deflateRawSync, fflate.deflateSync) and is accepted verbatim.


5. Mount / resume semantics

The playground computes mode from the link:

mode = (scenario === 'free' || decodedActions.length > 0) ? 'sandbox' : 'scripted'

From mode the playground decides whether it starts playing and whether the producer auto-loop is on - BOTH default to on exactly when mode is sandbox:

  • Scripted scenario, no actions → mode = 'scripted' → opens paused, on the Steps walkthrough (unless select is present, which opens the inspector). This is the plain scenario deep link.
  • Free‑play (scenario=free) → mode = 'sandbox' → opens playing with the producer auto‑loop ON, so records flow immediately.
  • Forked scenario with actions (scenario=<scripted>&actions=…) → decodedActions.length > 0 ⇒ mode = 'sandbox' → opens playing + looping too. The fork point is t. This is how a shared running sandbox reopens running rather than paused.

So: any link carrying an action log - or any free‑play link - opens running. A bare scripted link opens paused.


6. config_change accepted paths (whitelist)

The playground accepts only the paths below; any other path (or a value of the wrong shape) causes the whole config_change entry to be dropped (§3). This is the exact currently‑accepted set - every config_change path the playground UI can dispatch (producer, topic, consumer‑group, share‑group and member knobs):

Path pattern Accepted value(s)
producers.<id>.topic non‑empty topic name (per‑topic routing re‑route)
producers.<id>.config.acks 0, 1, all
producers.<id>.config.enableIdempotence true, false
producers.<id>.config.maxInFlight integer ≥ 1, or cleared
producers.<id>.config.retries integer ≥ 0
producers.<id>.config.retryBackoffMs integer ≥ 0
producers.<id>.config.lingerMs integer ≥ 0
producers.<id>.config.produceIntervalMs integer ≥ 1, or cleared
producers.<id>.config.partitioner default, roundrobin, uniform-sticky
producers.<id>.config.compressionType none, gzip, snappy, lz4, zstd
producers.<id>.config.quotaProducerByteRate integer ≥ 1, or cleared
producers.<id>.config.bufferMemory integer ≥ 1, or cleared
producers.<id>.config.maxBlockMs integer ≥ 1, or cleared
producers.<id>.config.batchSize integer ≥ 1, or cleared
producers.<id>.config.keyStrategy current, empty, fixed
producers.<id>.config.keyValue any string (including empty)
topics.<name>.minInSyncReplicas integer
topics.<name>.partitions integer ≥ 1 (partition count; a decrease is engine‑rejected, but the codec round‑trips it either way)
topics.<name>.cleanupPolicy delete, compact, compact,delete (serialized compact~delete)
topics.<name>.remoteStorageEnable true, false
topics.<name>.retentionMs integer ≥ 1, or cleared
topics.<name>.retentionBytes integer ≥ 1, or cleared
topics.<name>.localRetentionMs integer ≥ 1, or cleared
topic.<name>.unclean.leader.election.enable true, false
consumer.pollMs or group.<id>.consumer.pollMs integer
consumer.autoOffsetReset or group.<id>.consumer.autoOffsetReset earliest, latest, none
consumer.isolationLevel or group.<id>.consumer.isolationLevel read_committed, read_uncommitted
group.<id>.partition.assignment.strategy range, roundrobin, sticky, cooperative-sticky
group.<id>.topics non‑empty .‑joined topic list (e.g. orders.payments)
shareGroup.<id>.ackMode implicit, explicit
shareGroup.<id>.acquireMode record_limit, batch_optimized
shareGroup.<id>.renewAckEnable true, false
shareGroup.<id>.deliveryLimit integer ≥ 1
shareGroup.<id>.maxPollRecords integer ≥ 1
member.<id>.groupInstanceId true, false

(<id> / <name> are matched by regex; e.g. producers.p1.config.acks.)

KafScale refusals. On a KafScale cluster the engine refuses a change that sets what KafScale does not support (cleanupPolicy with compact, remoteStorageEnable true, enableIdempotence true, any disklessEnable change; in the engine also a replication factor above 1 or a transactionalId, which no URL path carries): no state change, a config_rejected event (kafscale_unsupported_config) instead. The codec round-trips these entries either way, like a partition decrease.

Cleared (undefined) values. A knob the UI clears by emptying its input (every row marked or cleared above - the producer byte‑rate / buffer / block / interval / batch caps and the three topic retention windows) dispatches value: undefined. It is encoded as an empty value segment (C:topics.orders.retentionMs:@1000), an explicit cleared marker that decodes back to undefined for exactly those paths. (keyValue’s empty segment is the literal empty string, not a cleared marker - it is a different path, and validation is path‑specific, so the two never collide.) An entry that carries the pre‑fix literal undefined value (…:undefined@…) still decodes to a drop, so older shared links are unaffected.


7. Known limitations for generator authors

These are current‑behavior facts to design around. Do not “fix” them here - separate tasks exist. Generators must treat them as hard constraints.

  1. config_change accepts only the §6 whitelist. The whitelist now covers every config knob the playground UI can dispatch (see §6). Any path NOT in that table - a hand‑crafted / future path the playground doesn’t know - is still dropped silently on decode (§3), so a generator must only emit §6 paths. (Historically the whitelist lagged the UI and dropped producer topic / retries / lingerMs / partitioner / keyStrategy, topic retention*, consumer‑group assignment / subscription, share‑group knobs and topic.*.unclean.leader.election.enable; those all round‑trip now.)
  2. Produce KEYS, add_acl / remove_acl principal / resourceName, and the bind_role principal / role + assign_principal targetId / principal ARE now reversibly escaped (§2.2) - a ,, : or ~ in them round‑trips (a comma‑bearing DN principal such as User:CN=orders,OU=svc survives all of add_acl, bind_role and assign_principal identically). A field that literally starts with - or _ (e.g. a resourceName _schemas, or an assign_principal targetId like _svc) now round‑trips too, even alongside a ~/,‑bearing sibling: the encoder emits a triple‑~ guard (~~~) - instead of the plain ~ separator - before any such field once some field in the entry is escaped, and the decoder reads ~~~ as a boundary followed by a literal -/_. Three consecutive ~ can never appear in a link that decodes to a real action under the old grammar (the middle ~ forces an empty field, which every authz decoder rejects), so the guard is a free, backward‑compatible marker; a clean entry (no escaped field) never emits it and stays byte‑identical to a legacy link. One narrow residual remains, from the produce‑key escape reusing ~ as its lead char:
    • A legacy raw produce key that literally contains the sequence ~t, ~c or ~s (a ~ immediately followed by t/c/s) now decodes with that sequence unescaped (e.g. cat~cat → cat,at). Such keys never round‑tripped through any other char, and normal keys (no ~) are unaffected. The fixed p/c target code in assign_principal stays raw (it is a closed p/c enum, never free text) but is threaded through the same join so the following targetId’s field position - and its ~~~ guard - is correct; a Kerberos @realm in a principal survives because the trailing @<at> is stripped via lastIndexOf('@'), so an earlier @ is kept.
  3. Free‑text config_change values can’t carry ~, : or @. The config value escape is one‑way (, → ~, §2.2), so those three characters are guarded out of the only free‑text config value (the producer fixed keyValue) at the input. A generator emitting a keyValue config must keep ~/:/@ out of it (a , is fine). To persist an arbitrary fixed key, emit it as the produce KEY instead, which is fully escapable.
  4. Percent‑encode the actions (and select) parameter VALUE. The playground now percent‑encodes them on write (via encodeURIComponent) and reads via URLSearchParams (which percent‑decodes), so &, #, %, + and spaces in a produce value round‑trip. An EXTERNAL generator MUST do the same: otherwise a + in a value decodes to a space and raw %xx sequences are mis‑decoded. The base64url compressed form contains none of these characters and round‑trips either way, but percent‑encoding it is still safe.

8. Worked examples

All action strings below are asserted verbatim in the conformance test.

8.1 Open a specific scripted scenario

Opens the “Keys and partitioning” scenario, paused on its walkthrough:

https://monedula.dev/kafka-simulator/playground?scenario=00.1.3

No actions ⇒ scripted mode ⇒ opens paused.

8.2 Free‑play: create a topic’s consumers, produce keyed records, kill a broker, observe an election

A single‑DC free‑play session. Add a consumer group on orders, produce three keyed records, then hard‑kill broker-2 and restart it (an election happens in between). scenario=free ⇒ sandbox ⇒ opens running.

Action log (plain):

AG:analytics:orders@1000,P:p1:orders:O1@2000,P:p1:orders:O2@3000,P:p1:orders:O3@4000,K:broker-2@8500,R:broker-2@22000

Full URL (percent‑encode the actions value - see §7.4):

https://monedula.dev/kafka-simulator/playground?scenario=free&actions=AG%3Aanalytics%3Aorders%401000%2CP%3Ap1%3Aorders%3AO1%402000%2CP%3Ap1%3Aorders%3AO2%403000%2CP%3Ap1%3Aorders%3AO3%404000%2CK%3Abroker-2%408500%2CR%3Abroker-2%4022000

8.3 A session with config changes

Set producer p1 to acks=all, drop orders’ min.insync.replicas to 2, enable idempotence, then produce a record. Config values that are not on the §6 whitelist would be dropped silently.

C:producers.p1.config.acks:all@1000,C:topics.orders.minInSyncReplicas:2@2000,C:producers.p1.config.enableIdempotence:true@3000,P:p1:orders:O1@4000

Full URL:

https://monedula.dev/kafka-simulator/playground?scenario=free&actions=C%3Aproducers.p1.config.acks%3Aall%401000%2CC%3Atopics.orders.minInSyncReplicas%3A2%402000%2CC%3Aproducers.p1.config.enableIdempotence%3Atrue%403000%2CP%3Ap1%3Aorders%3AO1%404000

8.4 A produce value with a comma and a colon

The value qty:5,paid (contains both : and ,) round‑trips via the v= escape (, → ~c):

P:p1:orders:O2:v=qty:5~cpaid@200

8.5 A compressed long session

A long session (150 produces) exceeds the 1500‑char threshold, so the playground emits the ~1 compressed form (the lz‑string layout, §4.1). The compressed value decodes back to the exact 150‑action log. Generators typically don’t need this; the plain form is preferred (§4). The conformance test builds the same 150‑action log, asserts the emitted ~1 prefix and an exact round‑trip, and asserts that the raw‑DEFLATE ~1 layout of the same log (what the monedula-sim-link Go generator emits) decodes to the identical log.

8.6 Newly‑supported knobs, including a cleared retention window

Repoint p1 at payments, switch group g2 to the eager range assignor, set orders’ retention.ms to 60000, then clear it again (empty value segment - the retention reverts to infinite). Every entry here was silently dropped before the §6 whitelist grew to the full UI dispatch set.

C:producers.p1.topic:payments@1000,C:group.g2.partition.assignment.strategy:range@2000,C:topics.orders.retentionMs:60000@3000,C:topics.orders.retentionMs:@4000

The last entry (…retentionMs:@4000, an empty value segment) decodes to { kind: 'config_change', path: 'topics.orders.retentionMs', value: undefined } - the explicit cleared marker (§6).

8.7 A produce KEY with a colon and a comma

The fixed key user:42,v2 (contains both : and ,) round‑trips via the key escape (, → ~c, then : → ~s):

P:p1:orders:user~s42~cv2@100

Decode reverses ~c/~s/~t to recover the exact key user:42,v2. A key without ~/,/: is emitted verbatim (e.g. P:p1:orders:O42@100), so every legacy link is byte‑identical.

8.8 An ACL principal with a tilde

add_acl for principal User:a~b (a ~ in the free‑text principal), resource orders, write on a topic, allow. The principal’s ~ escapes to ~- (the ACL fields are ~‑joined, so the escape uses ~-/~_, not ~t/~c):

ACL:User:a~-b~orders~wt1@100

The decoder’s escape‑aware split treats ~- as a literal ~ and the bare ~ between fields as the separator, recovering principal User:a~b, resource orders, codes wt1. A principal / resource without ~/, is emitted verbatim (e.g. ACL:User:alice~orders~wt1@100).

8.9 A -/_‑leading field beside an escaped sibling (the ~~~ guard)

assign_principal for a producer targetId _svc (leading _) whose principal User:CN=a,OU=b carries a ,. The , escapes to ~_, so the entry is in the escape‑aware‑walk regime; to keep the boundary before _svc from reading as an escaped ~_, the encoder emits the triple‑~ guard ~~~ before it:

PR:p~~~_svc~User:CN=a~_OU=b@100

The decoder reads ~~~ as a field boundary whose next field starts with a literal -/_, recovering targetId _svc and principal User:CN=a,OU=b. The guard fires only for a -/_‑leading field once some sibling is escaped; an all‑clean entry (even one with a _‑leading resourceName like _schemas) never emits it and is byte‑identical to a legacy link. The same ~~~ guard covers add_acl / remove_acl resourceName and bind_role role.

8.10 A reset that keeps a region-pinned group’s settings

kafka-consumer-groups --reset-offsets --group g1 --all-topics --to-earliest --execute on the west cluster of an active‑active topology, for a group pinned to west that reads both region topics with the range assignor and the principal User:CN=west,OU=apps:

RG:g1@9000,AG:g1:west.orders~east.orders:e:region=west~assignor=range~principal=User:CN=west~_OU=apps@9000,AC:g1:c1@9000

The add_group carries the reset target (e) and then the settings (§2.4): the principal’s , escapes to ~_, its : and = ride raw. The rebuilt group is pinned to west again, so it reads only the west copies of west.orders and east.orders.


9. Free‑play cluster shape - cluster and size

Sections §2-§8 cover the action log (the operations replayed on load). This part covers the other half a generator needs: the starting cluster a scenario=free link opens with. That is exactly the missing piece for a tool that reads a real Kafka cluster and wants to reproduce its structure - broker count, topics with per‑topic partition counts, replication factor, racks, regions - in a playground link.

Two query params carry it, both read only when scenario=free (ignored and never written for scripted scenarios):

  • cluster - the topology (§10). One of the slugs in §10. Absent ⇒ single-dc.
  • size - the shape within that topology (§11). Absent ⇒ the topology’s default size.

9.1 How size is applied - before the action log

On load the playground builds the base cluster from cluster + size first, then replays the actions log on top of it:

base cluster = the free-play cluster for (cluster, decoded size)   // §10-§12
sandbox      = the base cluster, then the decoded actions replayed // §2/§3

So size defines the cluster that exists at t=0, before any action runs. An action log written against the default cluster (e.g. K:broker-2) assumes the brokers/topics the default size creates; if you change size you must make sure the ids your actions reference (broker-N, topic names, pN, cN) exist in the cluster that size builds. Broker ids are broker-1, broker-2, … in the order the topology lays its zones out; the primary topic is orders; initial producers are p1..pN and consumer members c1..cN.

9.2 scenario=free vs a forked scenario

cluster/size are free‑play‑only. A forked scripted link (scenario=<scripted>&actions=…) opens the scripted scenario’s own fixed cluster and ignores cluster/size entirely - there is no way to reshape a scripted scenario’s cluster from the URL. To ship a custom cluster shape you must use scenario=free. Both open running (§5).


10. The cluster topology parameter

cluster selects one of thirteen topologies. Each defines an ordered list of zones (the units size’s broker counts map onto) and a default size. The default column is the size string you get when nothing is customized - and which the playground omits from the URL (so a default cluster is just ?scenario=free, optionally &cluster=<slug>).

cluster slug Zones (in size order) Kind Default size (omitted) Default shape
single-dc single single DC 3x3x3 3 brokers, 3 partitions, RF 3
active-passive primary, dr mirror (2 regions) 2-2x1x2 2+2 brokers, 1 partition, RF 2
active-active west, east mirror (2 regions) 2-2x1x2 2+2 brokers, 1 partition, RF 2
stretched-2-5 dc-a, dc-b MRC placement (§11.2) 2-2x1-1x1 2 sync + 1 observer per DC, 1 partition
stretched-3 dc-a, dc-b, dc-c 3‑DC stretched 1-1-1x3x3 1 broker/DC, 3 partitions, RF 3
diskless-3az single single cluster, 3 AZs as racks 6x3x3 6 brokers over az-a/az-b/az-c, classic orders + diskless clicks
inkless-3az single single cluster, 3 AZs as racks 6x3x3 as diskless-3az, running Aiven Inkless: clicks RF 1, PostgreSQL batch coordinator in az-a (v2.2, next)
kafscale-3b single single DC, racks rack-a/rack-b/rack-c (labels only: KafScale routes by no rack or zone) 3x3x1 3 brokers, orders 3 partitions RF 1 (diskless by construction), running KafScale 2.1: topics in S3 behind etcd partition leases, lease fencing, and a proxy that answers REQUEST_TIMED_OUT once etcd has been down longer than its 60 s cache TTL (v2.2, next)
automq-3az single single cluster, 3 AZs as racks (az-a/az-b/az-c; client.rack does not route produce or fetch away from the leader, unless the zone router is on: tail segment 17, r) 3x6x1 3 brokers, one per AZ, KRaft controllers c-1..3, orders 6 partitions RF 1 (S3-backed by construction), running AutoMQ 1.7.4: one S3 WAL per broker, acks=all after the upload (v2.2, next)
warpstream-3az single single cluster, 3 AZs as racks (az-a/az-b/az-c); each client uses an Agent in its own zone, named in client.id (ws_az=<zone>) from the producer’s or group’s client.rack 3x3x1 3 WarpStream Agents (v857), one per AZ, up to 2 per AZ (6 in all); no KRaft controllers (the control plane is hosted outside the account); orders 3 partitions RF 1 (in object storage by construction); p-a idempotent in az-a, p-c in az-c, group g-orders read_committed in az-b. Ripcord: tail segment 17, c; lightning topics: an extra topic’s 11th field l (v2.3)
redpanda-3az single single cluster, 3 AZs as racks (az-a/az-b/az-c); a consumer group’s client.rack reads the replica in its zone only with enable_rack_awareness on (tail segment 17, a) 3x6x3 3 Redpanda v26.2.2 brokers, one per AZ, with Cloud Topics; no KRaft controllers (Redpanda’s controller is a Raft group on the brokers, not drawn); orders 6 partitions RF 3, leaders two per broker; every topic is a cloud topic (redpanda.storage.mode=cloud) by the cluster, so no topic carries diskless.enable and an added topic keeps its replication factor; p-all (acks=all, idempotent) and p-one (acks=1) in az-a, group g-orders in az-b (v2.3)
ursa-3az single single cluster, 3 AZs as racks (az-a/az-b/az-c), rack-aware; each client names its zone in client.id (zone_id=<zone>), taken from the producer’s or group’s rack field 3x3x1, with the primary flag d (tail segment 17) 3 Ursa for Kafka brokers, one per AZ, up to 2 per AZ (6 in all); KRaft controllers c-1..3; orders 3 partitions RF 1, diskless (ursa.storage.enable=true, Oxia assigns the offsets), and the preset’s disk topic payments 3 partitions RF 3 (not in size); p-a idempotent and p-c on orders in az-a and az-c, p-pay idempotent on payments in az-b, group g-orders in az-b. The diskless choice is per topic: the primary flag d and an extra topic’s 10th field 1 (v2.3)
nisshi-3b single single DC, no racks (Nisshi routes by no rack or zone); each client is pinned to a broker by a hash of its id 3x3x1 3 Nisshi 0.8.2 brokers (formerly Tansu), up to 5; no KRaft controllers (every broker answers Metadata as node 111, the leader of every partition); orders 3 partitions RF 1, kept by the storage engine (no diskless.enable row); producer p-orders (idempotent) and group g-orders. The storage engine is PostgreSQL unless tail segment 17 carries s (S3, experimental in Nisshi’s docs); PostgreSQL’s maintenance interval: tail segment 17, m<ms> (v2.3)
streamhouse single classic single cluster; Kafka Connect and an Apache Iceberg sink beside it 3x3x3 3 brokers, orders 3 partitions RF 3, a Schema Registry, 2 Connect workers running the Iceberg sink connector orders-sink (tasks.max 2, commit interval 2 s, timeout 6 s, schema evolution on) into the Iceberg table orders. The sink knobs: tail segment 18 (v3.0, next)
streamhouseConfluent single classic single cluster; Confluent Tableflow and Lightning Tables on orders, no Connect 3x3x3 3 brokers, orders 3 partitions RF 3, a Schema Registry with orders-key and orders-value (Avro), producer p1; Tableflow publishes orders to an Iceberg table every 3 s (the real cadence is about 5 minutes), maintenance every 3 publishes, snapshot retention 24 h, error-handling.mode suspend; Lightning serves the same records as rows. orders’ cleanup.policy (tail segment 10) picks the write mode: delete APPEND, compact or compact,delete UPSERT. error_log is reserved: the engine adds it when the error mode is log. The Tableflow knobs: tail segment 18 (v3.0, next)
streamhouseRedpanda single single cluster, 3 AZs as racks (az-a/az-b/az-c), the redpanda-3az cluster shape; Redpanda Iceberg Topics on orders 3x3x3 3 Redpanda v26.2.2 brokers, one per AZ, no KRaft controllers; orders 3 partitions RF 3 on Tiered Storage (redpanda.storage.mode=tiered; every other topic stays a Cloud Topic), producer p1 (acks=all, idempotent), a Schema Registry with orders-value (Avro); Iceberg Topics translate orders into the table redpanda.orders (catalog rest), mode value_schema_id_prefix, a 3 s target lag (Redpanda’s default is 60 s), invalid records to redpanda.orders~dlq. With the registry off orders runs key_value (a schema mode needs the registry). orders’ cleanup.policy (tail segment 10) may be compact (a tiered topic). The Iceberg Topics knobs: tail segment 18 (v3.0, next)
streamhouseAiven single single cluster, the streamhouse shape; Aiven Iceberg Topics (experimental in Aiven’s sources) on orders 3x3x3 3 Apache Kafka brokers, 3 KRaft controllers; orders 3 partitions RF 3 on tiered storage (remote.storage.enable) with segments of 5 records (segment.bytes), segment.ms 10 s and local.retention.ms 5 s; producer p1 (acks=all, idempotent) serializing Avro through a Schema Registry of two instances (orders-value); Aiven’s tiered storage plugin in Iceberg mode (namespace aiven) writes each copied segment as rows of aiven.orders, and Kafka reads old offsets back from its files; catalog cache 10 min (Aiven’s default). With the registry off orders runs plain tiered storage, no table. The knobs: tail segment 18 (v3.0, next)
streamhouseUrsa single single cluster, 3 AZs as racks (az-a/az-b/az-c), the ursa-3az cluster shape; Ursa’s Stream Delivered Table on orders 3x3x1, with the primary flag d (tail segment 17) and the registry 1 (tail segment 14) 3 Ursa for Kafka brokers, one per AZ, up to 2 per AZ (6 in all); KRaft controllers c-1..3; orders 3 partitions RF 1, diskless (ursa.storage.enable=true); producer p1 (acks=all, idempotent) in az-a serializing through a Schema Registry of two instances (orders-value); no disk topic, no consumer group. The compaction service delivers what it compacted to the lakehouse table public.default.orders every 3 s (StreamNative’s default: 180 s), records it cannot convert (a tombstone, a value outside Schema Registry framing) to public.default.orders_dlt. With the registry off, or orders a disk topic, no table. The knobs: tail segment 18 (v3.0, next)
streamhouseFluss single Apache Fluss as its own system (not a Kafka cluster: no brokers, topics, partitions, producers or consumer groups) 3x3x3 (fixed, unused) 3 TabletServers and the CoordinatorServer; the primary-key table fluss.orders (columns order_id, customer, amount, key order_id, 3 buckets, RF 3) and the log table fluss.clicks (user_id, page, 2 buckets, no bucket key, RF 3), both with the lake on and table.log.ttl 20 s; the UpsertWriter upsert-writer on orders, the AppendWriter append-writer on clicks, the bucket scanner scanner-1 on the orders changelog; one tiering job tiering-job-1 copying both tables to a Paimon lake every 3 s (Fluss default 3 min); KV snapshots every 5 s (Fluss default 10 min); log segments of 4 records. Its actions are FLO: (§2). The knobs: tail segment 18 (v3.0, next)
fluss single Apache Fluss as a Kafka alternative, without the lakehouse; listed in the picker under Kafka alternatives only 3x3x3 (fixed, unused) The streamhouseFluss cluster with no table on the lake: no tiering service, no Paimon or Iceberg lake. Remote storage stays (KV snapshots, remote log segments; a segment past table.log.ttl expires). Its actions are FLO: (§2). The knobs: tail segment 18 (v3.1), the Fluss block with its lake fields at their defaults
iggy single Apache Iggy (server-0.10.0) as its own system (not a Kafka cluster: no brokers, topics, partitions, producers or consumer groups); listed in the picker under Kafka alternatives only 1x3x1 (fixed, unused) The cluster of 3 by default (node-0 to node-2, clustering on; owner, 2026-11-29), or 1 node (node-0; Iggy’s default, cluster off; a knob); the stream app with the topic orders (3 partitions, durability replicated, segment_size 2048 bytes, messages_required_to_save 8, size_of_messages_required_to_save 1024 bytes, scaled down from 1 GiB, 1024 and 1 MiB); the producer p1; the consumer group workers of w1 and w2 (both join at the start, poll in a loop, Manual commit); the standalone consumer c1 on every partition (Manual, polls only when asked). Its actions are IGO: (§2). The knobs: tail segment 18 (v3.1)
rabbitmq single RabbitMQ 4.4.1 as its own system (not a Kafka cluster: no brokers, topics, partitions, producers or consumer groups); listed in the picker under Kafka alternatives only, as “RabbitMQ” 1x1x1 (fixed, unused) Three nodes (rabbit-1 to rabbit-3) with Khepri over all three, or one by knob; the topic exchange orders binding the stream orders-log (writer on rabbit-1) with order.# and the quorum queue invoicing (leader on rabbit-2, delivery-limit 20) with order.created; the publisher p1 on rabbit-1 (AMQP 0.9.1, confirms on); the stream consumer reporting on rabbit-3 (named, from first, automatic tracking); the workers w1 and w2 (prefetch 2). Its actions are RMQ: (§2). The knobs: tail segment 18, q<nodes>.<delivery-limit, o for off>.<prefetch>.<max-age ms>.<max-length-bytes>.<flags> with d (the dead-letter exchange invoicing.dlx and queue invoicing.dlq), s (the named stream producer sp1), c (confirms off), m (mandatory), u (the super stream invoices), and p1, p2 or p3 (w1 handles the poison message order 7 with basic.reject requeue, basic.nack requeue or a crash), e.g. q3.3.2.0.0.dp1, then tagged fields (§11.3); empty when every knob is the default (v3.1)

diskless-3az ships in v2.0+ as a KIP-1163/1164 draft (marked “KIP draft” in the playground): v1.9 and earlier releases do not offer it. Its clicks topic, AZ racks, rack-aware placement and AZ-pinned clients come from the preset itself, so none of them appear in size.

The diskless implementation redpanda (Redpanda Cloud Topics, Redpanda v26.2.2, diskless.impl in a cluster config; v2.3) is in the sandbox as cluster=redpanda-3az. Its timing (tail segment 17) sets the L0 upload interval and the S3 upload; the L1 metastore registration (40 ms), the reconciler interval (2 s) and the election timeout (1.5 s) are fixed.

The diskless implementation ursa (Ursa for Kafka, docs read on 2026-11-21, diskless.impl in a cluster config; v2.3) is in the sandbox as cluster=ursa-3az. Unlike every other preset, its default size has the primary flag d on, so the omitted size makes orders diskless and size=3x3x1 (no d) makes it a disk topic; a non-default ursa-3az size writes d whenever orders is diskless. Its timing (tail segment 17) sets the buffer close and the object upload; the Oxia commit (200 ms) is fixed. With no diskless topic at all (orders a disk topic and no extra topic with the 10th field 1), the cluster is built as a classic one.

The diskless implementation nisshi (Nisshi 0.8.2, formerly Tansu, diskless.impl in a cluster config; v2.3) is in the sandbox as cluster=nisshi-3b. Every topic is kept by the storage engine, so no topic carries diskless.enable and the primary flag d is not written. The engine is PostgreSQL by default (Nisshi’s production engine: one transaction per produce request, holding the partition’s watermark row lock, 60 ms in the sandbox) and S3 with the s flag (a conditional write of the partition’s watermark.json, 200 ms in the sandbox, then one batch object per request, whose PUT is the timing’s second field). On PostgreSQL the maintenance sweep (retention and compaction) runs every 10 s in the sandbox, or every m<ms> (2000 to 600000); Nisshi’s own default is 10 minutes. The engine switch keeps the recorded actions (the run replays on the other engine). Partitions are fixed after creation, as Nisshi does not implement CreatePartitions.

stretched-2-5 is always an MRC placement slug (sync/observer form); stretched-3 uses the ordinary broker form by default but can be encoded as an MRC placement (§11.2). The three single‑partition mirror defaults are omitted from the URL just like 3x3x3 is for single-dc.


11. The size serialization, field by field

size is a single x‑delimited slug: a fixed 3‑segment base followed by an optional, positional tail. It is written and read by the playground, and by generators that follow this section. It is URL‑safe as written - the slug uses only A‑Z a‑z 0‑9 - x ! ~ , . _ *, none of which are +, % or space, so it survives a URLSearchParams round‑trip raw (the playground writes it without percent‑encoding). Percent‑encoding it is still safe.

11.1 The base - the structural three segments

Ordinary (non‑MRC) topologies:

<b1>-<b2>-…x<partitions>x<replicationFactor>
  • <b1>-<b2>-… - the broker count for each zone, in the topology’s zone order (§10), -‑joined. single-dc has one number (6); a 2‑zone mirror has two (2-2); stretched-3 has three (2-2-2).
  • <partitions> - the primary topic’s partition count.
  • <replicationFactor> - the primary topic’s replication factor.

Example: 6x4x3 = one zone of 6 brokers, 4 partitions, RF 3.

Single-zone topologies (single-dc, diskless-3az) may suffix the broker count with p<n> - the scale-out pin (placementBrokers). The topics sit on the first n brokers only; the brokers after them were added later and start empty, as a broker joining a real cluster does, until a reassignment moves partitions onto them. The playground writes it when only the broker count grows, and drops it on any partition / RF / topic change. Example: 4p3x3x3 = 4 brokers, topics placed on broker-1..3, broker-4 empty. A pin that is not below the broker count is ignored.

11.2 The base - MRC placement form (stretched)

For a Confluent Multi‑Region‑Cluster placement (always stretched-2-5; optionally stretched-3) the first two base segments are dash‑lists instead:

<sync1>-<sync2>[-…]x<obs1>-<obs2>[-…]x<partitions>
  • sync per zone and observers per zone (async replicas, never in the ISR). The playground detects this form because the second segment is a dash‑list (an ordinary base’s second segment is the single integer partitions).
  • The derived fields: brokersPerZone[i] = sync[i] + obs[i], and replicationFactor = Σ sync. min.ISR is derived by mrcMinIsr, not stored.

Example: 2-2x1-1x1 = 2 sync + 1 observer in each of dc-a/dc-b (⇒ 3 brokers/DC, RF 4), 1 partition.

11.3 The tail - optional, positional segments

Everything beyond the primary topic’s brokers/partitions/RF lives in the tail: zero or more further x‑segments after the base. The tail is positional and fixed‑length: the encoder emits the shortest tail long enough to carry the highest‑index field that is present, padding every earlier segment with an empty string. A field absent from size is empty in the slug; a field equal to its default is dropped on clamp (§12) and so is also absent.

Tail index Field Sub‑encoding (§11.4) Empty (default) when
0 extraTopics topic list no extra topics
1 producers producer list template producers unchanged
2 consumerGroups group list template groups unchanged
3 rackAware 1 / empty rack‑aware placement off
4 racks name list no custom per‑broker racks
5 regionNames name list template regions (mirror types)
6 links link list template mirror links
7 remoteStorage 1 / empty primary topic not tiered
8 engineConfig (timing) timing list timings all at defaults
9 seed sanitized string template PRNG seed
10 primary‑topic config primary list no primary min.ISR/cleanup/retention override
11 rackNames (managed set) name list auto one‑rack‑per‑broker set
12 observerPromotionPolicy d/s/m MRC placement default
13 kraftVoters 5 / empty 3‑voter quorum (default)
14 schemaRegistry 1-4 [r<dcs>] / empty no schema registry
15 authz 1 / empty authorization off (open)
16 controlPlane 1 / empty KRaft (1 ⇒ ZooKeeper, single‑DC only)
17 diskless (primary flag, zone router, Ripcord, rack awareness, timing) diskless segment primary topic classic, no zone router, Ripcord off, enable_rack_awareness off, default diskless timing
18 Streamhouse sink, the Confluent Tableflow block, the Redpanda Iceberg Topics block, the Aiven block, the Ursa block, the Fluss block or the Iggy block <workers>.<tasksMax>.<commitIntervalMs>.<commitTimeoutMs>.<0|1> (streamhouse), <publishIntervalMs>.<s|k|l> (streamhouseConfluent), <i|l|k>.<d|p>.<targetLagMs> (streamhouseRedpanda), a<segmentRecords>.<segmentMs>.<localRetentionMs>.<catalogCacheMs> (streamhouseAiven), u<commitIntervalMs>.<0|1>.<0|1> (streamhouseUrsa), f<freshnessMs>.<kvSnapshotMs>.<segmentRecords> (streamhouseFluss, fluss), g<r|p>.<segmentSize>.<messages>.<bytes>.<0|1>.<m|o|a><m|o|a>[.n<1|3>[.r<1|2>]] (iggy) block at the preset default (2.2.2000.6000.1, 3000.s, i.d.3000, a5.10000.5000.600000, u3000.0.0, f3000.5000.4, gr.2048.8.1024.0.mm)

Tail index 17 is v2.0+, KIP-1163/1164 draft.

Tail index 18 (the 19th tail segment, v3.0, next) exists only on a type with a tail-18 block. On cluster=streamhouse it carries the Iceberg sink: five dot-separated fields <workers>.<tasksMax>.<commitIntervalMs>.<commitTimeoutMs>.<0|1>, the Connect workers, the connector’s tasks.max, iceberg.control.commit.interval-ms, iceberg.control.commit.timeout-ms and iceberg.tables.evolve-schema-enabled (1 on). The decode is strict: exactly five fields, four non-negative integers and a 0 or 1, otherwise the sink falls back to the default. Ranges on clamp: workers 1-4, tasksMax from 1 to the source topic’s partitions, interval 1000-30000 and timeout 2000-60000 (both in steps of 500). A sink equal to the default adds nothing to the slug. Example, 3 workers and tasks, a 5 s interval, a 10 s timeout and schema evolution off: 3x3x3xxxxxxxxxxxxxxxxxxx3.3.5000.10000.0.

On cluster=streamhouseConfluent (v3.0, next) the same index carries the Tableflow block instead: two dot-separated fields <publishIntervalMs>.<s|k|l>, Tableflow’s publish interval on orders in ms (the real one is “approximately every 5 minutes” and not settable) and its error-handling.mode (s suspend, k skip, l log). Maintenance runs at three times the publish interval. The decode is strict: a non-negative integer, a dot and one of s, k, l, otherwise the block falls back to the default (3000.s, which adds nothing to the slug). The interval clamps to 2000-30000 in steps of 500, so either cleanup.policy of orders builds a valid table (UPSERT needs more than 1500 ms). The sink’s five-field segment is not a Tableflow block, and the Tableflow block is not a sink segment: each type falls back to its default there. Example, a 5 s interval and skip with the registry on: 3x3x3xxxxxxxxxxxxxxx1xxxx5000.k.

On cluster=streamhouseRedpanda (v3.0, next) the same index carries the Iceberg Topics block on orders: three dot-separated fields <i|l|k>.<d|p>.<targetLagMs>, redpanda.iceberg.mode (i value_schema_id_prefix, l value_schema_latest, k key_value), redpanda.iceberg.invalid.record.action (d dlq_table, p drop) and redpanda.iceberg.target.lag.ms in ms (Redpanda’s default, iceberg_target_lag_ms, is 60 s). The decode is strict: one of i, l, k, a dot, one of d, p, a dot and a non-negative integer, otherwise the block falls back to the default (i.d.3000, which adds nothing to the slug). The target lag clamps to 1000-30000 in steps of 500 (above the simulator’s 500 ms translation). With the registry off (tail segment 14 empty) the block keeps its mode but orders runs key_value: the schema modes need the registry. orders’ cleanup.policy stays in tail segment 10 (compact is allowed on this tiered topic). The sink’s and the Tableflow segments are not an Iceberg Topics block, and this block is neither of theirs: each type falls back to its default there. In the playground a change of the mode (the one the build runs) starts a fresh cluster; the action and the target lag keep the recorded actions. Example, value_schema_latest, drop and a 5 s target lag with the registry on: 3x3x3xxxxxxxxxxxxxxx1xxxxl.p.5000.

On cluster=streamhouseAiven (v3.0, next; experimental in Aiven’s own sources) the same index carries the Aiven block on orders: a and four dot-separated fields a<segmentRecords>.<segmentMs>.<localRetentionMs>.<catalogCacheMs>, the records per segment (segment.bytes at the simulator’s 1 KiB a record), segment.ms, local.retention.ms and the plugin’s iceberg.catalog.cache.expiration.ms (Aiven’s default 10 min), all in ms but the first. The decode is strict: a and four non-negative integers, otherwise the block falls back to the default (a5.10000.5000.600000, which adds nothing to the slug). Ranges on clamp: 1-100 records, segment.ms and local.retention.ms 1000-60000 in steps of 500, the cache 1000-600000 in steps of 1000. The registry is on by default (tail segment 14 is 1) with two instances the type deploys, so the producer serializes Avro; with it off orders runs plain tiered storage and no table. Every knob keeps the recorded actions. Example, 3 records a segment, segment.ms 5 s, local.retention.ms 2 s and a 1-minute cache: 3x3x3xxxxxxxxxxxxxxx1xxxxa3.5000.2000.60000.

On cluster=streamhouseUrsa (v3.0, next) the same index carries the Ursa block, cluster-wide as Ursa’s tables are on Kafka clusters: u and three dot-separated fields u<commitIntervalMs>.<persistKey>.<persistExtraMetadata>, the delivery commit cadence in ms (the simulator folds StreamNative’s visibility interval and maximum commit interval, 180 s each, into one, 3 s by default) and the two column switches, 1 on and 0 off: persistKey adds a __key column, persistExtraMetadata the __meta fields (message offset, publish time, schema version). The decode is strict: u, a non-negative integer and two 0/1 fields, otherwise the block falls back to the default (u3000.0.0, which adds nothing to the slug). The cadence clamps to 500-60000 in steps of 500. The primary flag d (tail segment 17) is on by default, as on ursa-3az: without it orders is a disk topic and gets no table. The registry is on by default (tail segment 14 is 1) with two instances the type deploys, so the producer serializes; with it off no table is delivered. Every knob keeps the recorded actions. Example, a 5 s cadence with persistKey on: 3x3x1xxxxxxxxxxxxxxx1xxxdxu5000.1.0.

On cluster=streamhouseFluss (v3.1) the same index carries the Fluss block. Fluss is its own system, not a Kafka cluster: the base segments stay at the fixed 3x3x3 and every Kafka field (brokers, topics, producers, groups, racks, the registry) is dropped on clamp. The block is f and three dot-separated fields f<freshnessMs>.<kvSnapshotMs>.<segmentRecords>: table.datalake.freshness of both tables (3 min in Fluss, 3 s by default here, 1000-60000 in steps of 500), kv.snapshot.interval (10 min in Fluss, 5 s by default, 1000-60000 in steps of 500) and the log segment size as a record count (log.segment.file-size, 1 GB in Fluss, 4 by default, 2-50). The decode is strict: f and three non-negative integers, otherwise the block falls back to the default (f3000.5000.4, which adds nothing to the slug). Every knob keeps the recorded actions. Example, a 6 s freshness, 2.5 s KV snapshots and segments of 6 records: 3x3x3xxxxxxxxxxxxxxxxxxxf6000.2500.6.

On cluster=fluss (v3.1, Fluss without the lakehouse) the index carries the same Fluss block, but the clamp resets its lake fields (table.datalake.freshness, and .i for an Iceberg lake) to their defaults, so only kv.snapshot.interval and the segment size reach the slug. Example, 2.5 s KV snapshots and segments of 6 records: 3x3x3xxxxxxxxxxxxxxxxxxxf3000.2500.6.

On both Fluss types, more knobs follow the block (and its .i) as tagged fields, .<code><value>, each written only off its default, in this order (src/sim/knobCodec.ts; the list only grows at its end and a code is never reused): s TabletServers (3; 1-5), b the bucket.num of fluss.orders (3; 1-6), c the bucket.num of fluss.clicks (2; 1-6), r default.replication.factor, which both tables inherit (3; at most the servers), m log.replica.min-in-sync-replicas-number (1; at most the factor), a both writers’ client.writer.acks (0 all, 1 1, 2 0), e their client.writer.enable-idempotence (1 on, the default, 0 off; off whenever acks is not all), t client.writer.batch-timeout in ms (100; 50-2000 in steps of 50), g fluss.orders’ table.merge-engine (0 none, the last row wins; 1 first_row), w its table.changelog.image (0 FULL, 1 WAL), l both tables’ table.log.ttl in ms (20000, 7 days in Fluss; 5000-120000 in steps of 1000), o their table.log.local-ttl in ms (0, which inherits the TTL; at most the TTL) and n table.log.tiered.local-segments (2; 1-10). An unknown code, a repeated one or a value out of its choices makes the whole block fall back to the default. Every knob keeps the recorded actions. Example, five TabletServers with orders in 4 buckets and a min ISR of 2: 3x3x3xxxxxxxxxxxxxxxxxxxf3000.5000.4.s5.b4.m2.

The editor’s added entities follow as list fields, .<code>_<row>!<row> (the same form as Iggy’s below), in this order: tb tables of the database fluss (name, type pk or log, buckets 1-6; at most 4; a primary-key table has the columns and key of fluss.orders, a log table the columns of fluss.clicks), wr writers (id, table; at most 4) and sc scanners (id, table; at most 4). A table name is [a-z_][a-z0-9_] of at most 24 characters, a client id 1 to 24 of a-z, 0-9, _ and - (simulator choice). A writer or a scanner must name a table that exists (orders, clicks or an earlier entry); the clamp drops one that does not, so removing a table removes its clients. Every edit keeps the recorded actions: the run replays on the new shape. Example, the primary-key table fluss.payments in 2 buckets with the writer pay-writer: 3x3x3xxxxxxxxxxxxxxxxxxxf3000.5000.4.tb_payments~pk~2.wr_pay-writer~payments.

Two more tagged fields follow the lists: u every scanner’s scan.startup.mode (0 earliest, the default; 1 latest; 2 timestamp) and v its scan.startup.timestamp in ms of the run (0; 0-600000 in steps of 500; kept only with timestamp). A scanner applies the mode when it subscribes again (the resubscribe op, §2); at time 0 every log is empty, so the first subscribe is the same in each mode. Example, the scanners start from the high watermark: 3x3x3xxxxxxxxxxxxxxxxxxxf3000.5000.4.u1.

On cluster=iggy (v3.1) the same index carries the Iggy block. Iggy is its own system, not a Kafka cluster: the base segments stay at the fixed 1x3x1 and every Kafka field is dropped on clamp. The block is g and six dot-separated fields g<r|p>.<segmentSize>.<messages>.<bytes>.<0|1>.<m|o|a><m|o|a>: the topic’s durability (r replicated, Iggy’s default; p persisted), segment_size in bytes (1 GiB in Iggy, 2048 by default here, 512-16384 in steps of 512), messages_required_to_save (1024 in Iggy, 8 by default, 1-64), size_of_messages_required_to_save in bytes (1 MiB in Iggy, 1024 by default, 256-16384 in steps of 256), the producer p1’s opt-in idempotence (0 off, 1 on), and the CommitPolicy of the group’s members, then of the standalone consumer c1 (m Manual, the default; o OnRead; a Auto). The decode is strict: anything else falls back to the default (gr.2048.8.1024.0.mm, which adds nothing to the slug). Every knob keeps the recorded actions: switching the durability replays the same run on the other setting. Example, persisted with 1024-byte segments, an idempotent producer and c1 on Auto: 1x3x1xxxxxxxxxxxxxxxxxxxgp.1024.8.1024.1.ma.

Two optional fields follow for the node count: .n1 runs one node (node-0), .n3 three (node-0 to node-2); absent, three, the default since 2026-11-29 (before that an absent field meant one node, but no build with Iggy had shipped). .n3 is written only before a factor. .r<factor> sets the topic’s replication_factor when it is not every node (.r1 or .r2; absent, Iggy’s default "all"). A factor of the node count or more is every node; on one node the factor is dropped. The cluster keeps the recorded actions too: switching it replays the run on three nodes, and back on one node an op that names node-1 or node-2 changes nothing. Example, three nodes with each partition on two of them: 1x3x1xxxxxxxxxxxxxxxxxxxgr.2048.8.1024.0.mm.n3.r2.

One more optional field follows for Iggy’s Kafka gateway 0.2.0 (gated by freeplay.iggyKafkaGateway): .k turns it on (the topic payments in the stream kafka, the Kafka producer kp1 and the Kafka group billing of kc1 and kc2), then i when IGGY_KAFKA_IDEMPOTENT_PRODUCERS is on (false by default) and 0 or 1 for the Kafka producer’s acks when it is not all. Absent, no gateway. Example, the gateway with idempotent producers on the default cluster: 1x3x1xxxxxxxxxxxxxxxxxxxgr.2048.8.1024.0.mm.ki.

More knobs of the topic app.orders follow (after .n, .r and the Kafka gateway’s .k) as tagged fields, .<code><value>, each written only off its default, in this order (src/sim/knobCodec.ts; the list only grows at its end and a code is never reused): p its partitions_count at create (3; 1-6), e its message_expiry at create in simulator milliseconds (0, none, Iggy’s default; up to 120000 in steps of 1000) and z its max_topic_size at create in bytes (0, unlimited, Iggy’s default; up to 65536 in steps of 512, and at least segment_size). An unknown code, a repeated one or a malformed value makes the whole block fall back to the default. Example, four partitions whose messages expire after 30 s: 1x3x1xxxxxxxxxxxxxxxxxxxgr.2048.8.1024.0.mm.p4.e30000.

The editor’s added entities follow as list fields, .<code>_<row>!<row>, each row its columns joined by ~ (an empty column is absent), a lowercase x in a name written *, and a list written only when not empty, in this order: sm streams (name; at most 3), tp topics (stream, name, partitions, 1-6; at most 6), gp consumer groups (stream, topic, name; at most 4), pr producers (id, stream, topic; at most 4) and cs consumers (id, stream, topic, then group for a member, empty for a standalone consumer; at most 6). A name is 1 to 24 characters of a-z, 0-9, _ and -; a group name is unique across topics and apart from the client ids (simulator choices). On decode each entry must name a stream, topic or group that exists (the preset’s app, app/orders and workers, or an earlier entry); the clamp drops one that does not, so removing a stream removes what stood on it. Every edit keeps the recorded actions: the run replays on the new shape, and an action that names a removed entity changes nothing. Example, the stream audit with the topic events in 2 partitions and a standalone consumer a1 reading it: 1x3x1xxxxxxxxxxxxxxxxxxxgr.2048.8.1024.0.mm.sm_audit.tp_audit~events~2.cs_a1~audit~events~.

On cluster=rabbitmq (v3.1) more knobs follow the RabbitMQ block (its flags, §10) as tagged fields, .<code><value>, each written only off its default, in this order (src/sim/knobCodec.ts; the list only grows at its end and a code is never reused): g the quorum queue invoicing’s x-quorum-initial-group-size (3; 1-3), i the stream orders-log’s x-initial-cluster-size (3, every node; 1-3), s its segment size in chunks (8; 4 or 16; x-stream-max-segment-size-bytes, 500 MB in RabbitMQ) and t invoicing’s consumer-timeout in ms (0, none; 1000 or 5000; 30 minutes in RabbitMQ). After the editor’s lists (below) come l invoicing’s x-max-length (0, none; 3 or 10), b its x-max-length-bytes (0, none; 500, at 100 bytes a message) and o its x-overflow (0 drop-head, the default; 1 reject-publish). Example, at most 3 ready messages and reject-publish: 1x1x1xxxxxxxxxxxxxxxxxxxq3.20.2.0.0..l3.o1. On a single node both sizes are 1 whatever the field says. An unknown code, a repeated one or a malformed value makes the whole block fall back to the default; a value outside its choices is the default. Every knob keeps the recorded actions. Example, invoicing on one member and a 1 s consumer-timeout (the flags are empty, hence the two dots): 1x1x1xxxxxxxxxxxxxxxxxxxq3.20.2.0.0..g1.t1000.

The editor’s added parts follow as list fields, .<code>_<row>!<row> (the same form as Iggy’s), in this order: qu quorum queues (name, node; at most 3), st streams (name, node; at most 3), bd bindings of the topic exchange orders (to, a queue or a stream, and key, one of all #, orders order.#, one-word order.*, created order.created, paid order.paid or shipped order.shipped: a fixed list, since a row holds no ., # or *; at most 6), pb publishers to orders with confirms (id, node; at most 3), cq workers of a quorum queue (id, queue, node; the preset’s prefetch; at most 4) and cs named stream consumers from first with automatic tracking (id, stream, node; at most 3). A name is 1 to 24 characters of a-z, 0-9, _ and -, apart from every name the preset uses (simulator choices); node is rabbit-1 to rabbit-3, empty for one in turn, and rabbit-1 on a single node. On decode a binding or a consumer must name a queue or stream that exists (the preset’s invoicing and orders-log, or an earlier entry); the clamp drops one that does not, so removing a queue removes its bindings and workers. Every edit keeps the recorded actions: the run replays on the new shape, and an action that names a removed part changes nothing. Example, the quorum queue shipping led on rabbit-3, bound with order.shipped, and its worker ship-1: 1x1x1xxxxxxxxxxxxxxxxxxxq3.20.2.0.0..qu_shipping~rabbit-3.bd_shipping~shipped.cq_ship-1~shipping~rabbit-1.

The only accepted total segment counts are therefore 3 (base only) and 3 + {1, 3, 5, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19}, where 19 (22 segments in all) is accepted only on a type with a tail-18 block (streamhouse, streamhouseConfluent, streamhouseRedpanda, streamhouseAiven, streamhouseUrsa, streamhouseFluss, fluss, iggy, rabbitmq). A tail length of exactly 1 is a back‑compat special case that carries extraTopics only. Any other count is treated as malformed and the whole size falls back to the topology default (§12). New fields are only ever appended at a higher index, so an older shorter slug always still decodes.

11.4 The sub‑encodings

Within a tail segment the delimiter alphabet is: ! (list items), ~ (fields within one item, and the escape for x→* - see below), , (the multi‑topic subscription list inside a consumer group), - (zone/link index parts). Empty trailing fields are dropped in a way that keeps older slugs decodable.

Name escaping (topics, racks, regions). The whole slug is split on lowercase x, but a topic/rack/region name may legally contain the letter x. Every name field is emitted with x→* and restored on decode (* is a char the name sanitizers strip, so it never occurs in a real name; capital X is left alone). The seed strips x entirely instead. Names are sanitized to [A‑Za‑z0‑9._-] (topics ≤40 chars, racks/regions ≤20, seed ≤40).

  • extraTopics - topics joined by !; each topic’s 9 fields joined by ~, in order: name, partitions, replicationFactor, minInSyncReplicas, cleanup code (d=delete / c=compact / cd=compact,delete), retentionMs, retentionBytes, remote‑storage flag (1/empty), localRetentionMs. The four retention/tier fields are empty when unset (local.retention.ms only applies when the tier flag is 1). A topic decodes only if it has ≥5 fields and its partitions/RF/min.ISR are all numeric. Example (RF‑3 6‑partition payments, compacted 2‑partition RF‑2 audit): payments~6~3~2~d~~~~!audit~2~2~1~c~~~~. A diskless topic (diskless.enable; v2.0+, KIP-1163/1164 draft) appends a 10th field 1; a classic topic omits it, so the 9‑field form is unchanged. Example: clicks~3~3~2~d~~~~~1. The flag is dropped on clamp for a compacted or tiered topic and on the mirror topologies. On ursa-3az it is ursa.storage.enable=true (v2.3), and a topic without it is a classic disk topic. A WarpStream lightning topic (warpstream.topic.type=lightning; v2.3, next) appends an 11th field l after the diskless field, e.g. fast~2~1~1~d~~~~~1~l. It applies to warpstream-3az only, so it is dropped on every other topology; a topic without it decodes as before.
  • producers - producers joined by !; each producer’s 10 fields joined by ~, in order: acks (0/1/all), idempotence (1/0), lingerMs, topic (x‑escaped; empty ⇒ the primary topic), produceIntervalMs, maxInFlight, compressionType (empty ⇒ none), quotaProducerByteRate, bufferMemory, maxBlockMs. Every field after the first two is empty when unset. Example, two producers: all~1~~~~~~~~!1~0~~~~~~~~. A producer with a client.rack (v2.0+, KIP-1163/1164 draft) appends an 11th field, the x‑escaped rack name; a rack‑less producer omits it, so the 10‑field form is unchanged. Example: all~1~~~~~~~~~az-c.
  • consumerGroups - groups joined by !; each group is the bare member count (2), or <members>~<t1,t2,…> when the group subscribes to a specific topic set (names x‑escaped, ,‑joined). Example, a 2‑member and a 1‑member group: 2!1. A group with a client.rack (v2.0+, KIP-1163/1164 draft) appends a third field, the x‑escaped rack name, leaving the topics field empty when there is no topic set: 2~~az-b, 1~clicks~az-b. A rack‑less group omits it.
  • client.rack (the producer / group field above) - must name one of the cluster’s per‑broker racks (auto rack-a/rack-b/…, the racks segment, or a preset’s AZs); any other name is dropped on clamp. After un‑escaping, the name must be 1-20 chars of [A-Za-z0-9._-]; anything else (empty, too long, another char) decodes to no rack. Absent ⇒ the preset’s template rack (diskless-3az puts producers in az-a and groups in az-b), else no rack. On diskless-3az a client cannot be set to no rack: clearing it falls back to the template rack instead. It only affects diskless topics in the simulator, and is dropped on builds without diskless topics (v1.9 and earlier).
  • racks / rackNames - names joined by ! (each x‑escaped). racks is the per‑broker assignment (one per broker); rackNames is the managed available‑rack set.
  • regionNames - names joined by ! (each x‑escaped). Redefines the region count for a mirror topology, so brokersPerZone is realigned to it.
  • links - mirror links joined by !; each is <from>-<to> by region index, with a -c suffix for a Confluent Cluster Link and a further -r for a config‑time bidirectional cluster link (0-1, 0-1-c, 0-1-c-r). A Cluster Link on active-active always sets cluster.link.prefix to <source region>. (west.orders next to the local orders), derived from the topology, not encoded. On active-passive it sets none by default (the mirror keeps the source name, orders on the standby); a -p suffix (0-1-c-p) sets it to <source region>. (primary.orders). -p and -r are exclusive (a bidirectional pair needs the same name both ways; -r wins). Older share links with an active‑passive Cluster Link therefore open with the mirror named orders; add -p for the old primary.orders. An MM2 link whose source consumer uses isolation.level=read_committed carries -rc (0-1-rc); without it the MM2 default read_uncommitted applies. An Apache Kafka cluster mirror (KIP‑1279, accepted, not yet released) carries -m (0-1-m): a same‑name read‑only mirror with no prefix and no reverse pair; active-active has none (the KIP has no active‑active), so -m falls back to MM2 there. PM and a live SW on a cluster mirror are refused (mirror_promote_rejected, reason not_supported): stop it with FM, then fail back with SW. A kaf-mirror link (v2.3) carries -f (0-1-f): the copy keeps the source name (orders on the standby, read-only until a failover), the target numbers its own offsets, and nothing translates consumer offsets, so a failover starts each group at its auto.offset.reset there (none acts as earliest). There is no failback over it, and active-active has none (no loop prevention), so -f falls back to MM2 there. A build before v2.3 opens -f as an MM2 link. An MM2 link that runs on Kafka Connect workers (v3.0, Connect lane step 2) carries -w<n>, the worker count 1 to 3 (0-1-w2), then -t<n> for a tasks.max over 1, up to 4 (0-1-w2-t2), then -e for KIP‑618 exactly‑once (0-1-rc-w2-t2-e; exactly‑once needs the read_committed source consumer, so it implies -rc). Each target region gets one Connect cluster (connect-<region>) running its -w links. Without -w the link keeps the step 1 model (no worker, no task), so every older link decodes unchanged; -t and -e mean nothing on an MM2 link without -w. A build before v3.0 drops -w, -t and -e (-rc stays). A Confluent Replicator link (v3.0) carries -rep (0-1-rep-w1): the copy keeps the source name, and it always runs on Connect workers (-w<n>, 1 when absent; -t<n> as for MM2; no -e). -ts (0-1-rep-ts-w1) makes the consumer groups run ConsumerTimestampsInterceptor, so Replicator translates their offsets by timestamp; without it a failover starts them at their auto.offset.reset. active-active has no Replicator yet (same name both ways needs provenance headers), so -rep falls back to MM2 there. A build before v3.0 opens -rep as an MM2 link.
  • primary‑topic config - 5 fields joined by ~: minInSyncReplicas, cleanup code, retentionMs, retentionBytes, localRetentionMs (each empty when unset). partitions/RF are not here - they live in the base.
  • engineConfig (timing) - a fixed‑width positional ~‑list, one field per key in this order, each empty unless it differs from its default: lingerMs(500), replicaFetchMs(600), leaderElectionMs(500), replicaCatchupMs(500), consumerPollMs(800), mirrorMs(500), observerLagMs(800), mirrorCheckpointMs(0), replicationThrottleRate(0), mirrorOffsetLagMax(5; MM2 offset.lag.max in records, mirror types only, 0 ⇒ an offset sync for every record, i.e. exact translation), mirrorOffsetMapperMs(500; the Lenses K2K offset mapper), connectFlushMs(1000; the mirror Connect workers’ offset.flush.interval.ms, scaled from the real 60000) and connectRebalanceDelayMs(3000; their scheduled.rebalance.max.delay.ms, scaled from the real 300000). The last two act only on links with -w, and a build before v3.0 drops them.
  • seed - the sanitized PRNG seed string (see name escaping).
  • observerPromotionPolicy - d (auto‑promote, demote on recovery), s (auto‑promote, stay), m (manual). MRC placement only.
  • kraftVoters - 5 (a 5‑voter quorum); empty ⇒ the default 3.
  • schemaRegistry - 1 = the registry on, with no SR instances (subjects and compatibility only, as before v2.2). v2.2 preview: 2, 3 or 4 = the registry with 1, 2 or 3 SR instances in every DC, optionally followed by r and the indexes of the DCs (broker‑DC order, one digit each) whose instances are follower‑only, e.g. 3r1 = 2 instances per DC, the second DC’s follower‑only. With instances, every producer and consumer group serializes through SR with a warm schema cache. Empty ⇒ no registry.
  • authz / controlPlane - 1 when on; the last is 1 ⇒ ZooKeeper control plane (single‑DC only), empty ⇒ KRaft.
  • diskless (v2.0+, KIP-1163/1164 draft) - d when the primary topic is diskless, followed, only when a diskless timing is set, by <commitIntervalMs>.<uploadMs> (either side empty ⇒ its default: diskless.append.commit.interval.ms 500, upload 600). Examples: d (primary diskless, default timing), d250.600, .900 (a diskless extra topic with a 900 ms upload). d. decodes as d; any other segment (dd, dfoo, a bare 1, d..) decodes to no diskless fields. The AutoMQ zone router (automq.zonerouter.channels, off by default in AutoMQ 1.7.4; v2.2, next) is an r after the optional d and before the timing: r, dr250.600, r.900. It applies to automq-3az only, so it is dropped on every other topology and on a build that withholds the feature (r before d, as in rd, decodes to no diskless fields). With it on, a client whose zone is named (the producer’s or group’s client.rack, which the playground labels client.id ... automq_az=<zone> for AutoMQ) talks to a proxy broker in that zone, which writes its records to a router channel in S3 and sends the leader a pointer. A segment without r decodes as it did before. WarpStream Ripcord (the Agent’s -enableRipcord, off by default; v2.3, next) is a c after the optional r and before the timing: c, c250.600, c.900. It applies to warpstream-3az only, so it is dropped on every other topology (c before d or r, as in cd, decodes to no diskless fields). With it on, an Agent keeps accepting produce while the control plane is unreachable (CP:0): it writes each file, journals it and acknowledges it with offset 0, and the control plane commits the journal when it is reachable again (CP:1). A segment without c decodes as it did before. On warpstream-3az the timing’s first field is the Agent’s batchTimeout; the control plane commit is fixed at 200 ms. Redpanda enable_rack_awareness (a cluster property, off by default in Redpanda v26.2.2; v2.3) is an a after the optional c and before the timing: a, a250.600, a.900. It applies to redpanda-3az only, so it is dropped on every other topology (a before d, r or c, as in ad, decodes to no diskless fields). With it on, a consumer group with a client.rack reads from the replica in its zone (the rack-aware replica selector) instead of the partition leader. A segment without a decodes as it did before. On redpanda-3az the timing’s first field is the L0 upload interval. On ursa-3az (v2.3) d is on in the default size, so a size without it makes orders a disk topic; the timing’s first field is the buffer close and the Oxia commit is fixed at 200 ms. The Nisshi storage engine (v2.3) is an s after the optional a and before the timing: s (S3), s.900 (S3 with a 900 ms batch PUT); without it the engine is PostgreSQL. PostgreSQL’s maintenance interval is an m<ms> after the timing: m30000, .900m4000; it is clamped to [2000, 600000] ms and dropped with s. Both apply to nisshi-3b only, so they are dropped on every other topology; a segment without them decodes as it did before. On nisshi-3b only the timing’s second field (the batch PUT, used on S3) applies. Timings are clamped to integers in [100, 5000] ms and dropped when no topic is diskless; the primary flag is dropped under the same rules as the per‑topic flag.

12. Decode and clamping - what survives

Decoding a size slug for a topology never throws; it always produces a valid cluster shape. Two failure modes and a set of range clamps decide what a generator’s slug actually becomes:

  1. Wholesale fallback to the topology default. If the slug is empty, has a segment count that isn’t accepted (§11.3), has a broker‑zone list whose length ≠ the topology’s zone count (or the named‑region count, for a mirror slug that carries regionNames), or has a non‑finite number in the base, the entire size is discarded and the topology default is used. This is silent - validate your slug by decoding it before shipping a link.
  2. Per‑field tolerant skip. A malformed tail item (a topic chunk with <5 fields, a non‑numeric member count, a bad link chunk) is dropped individually; the rest of the size still decodes.
  3. Range clamps, the ones a generator must design around:
    • Broker count. Each zone is forced ≥1, then trailing zones are trimmed until the total fits the topology’s broker cap - 10 for single-dc (MAX_SINGLE_DC_FREE_PLAY_BROKERS), 9 for every other topology (MAX_FREE_PLAY_BROKERS, spread across its zones). e.g. 12x3x3 → 10x3x3.
    • Replication factor. Clamped to [1, max], where max is: total brokers for single-dc / stretched-3; the primary zone’s brokers for active-passive; the smaller zone for active-active (a single RF must fit the region that hosts the topic locally). e.g. 6x3x10 → RF 6. Because RF is bounded by the current broker count, shrinking the brokers (here or later via a remove_broker action) lowers the RF the cluster can sustain.
    • Partitions. Clamped to [1, max], where max is: 24 for single-dc (its canvas grows per broker), 6 for the mirror / 2.5‑DC bands, and for stretched-3 the largest count that keeps the busiest broker within 3 partition strips at the chosen RF.
    • Extra topics. Trimmed to MAX_FREE_PLAY_TOPICS = 6; each topic’s RF/partitions/min.ISR are clamped like the primary; names are sanitized and deduped against the primary and each other (a collision gets a -N suffix); localRetentionMs is dropped unless the topic’s tier flag is on.
    • Producers / groups / members. Each list trimmed to 4 (MAX_FREE_PLAY_PRODUCERS / MAX_FREE_PLAY_GROUPS); member count per group clamped to [1, 4] (MAX_FREE_PLAY_GROUP_MEMBERS).
    • Racks. The per‑broker racks list is padded/clamped to exactly the broker count and reconciled to the managed rackNames set; rackNames is deduped and trimmed to [1, MAX_FREE_PLAY_RACKS] (= 9).
    • Regions (mirror types). The named region count is clamped to [2, 4] (MAX_FREE_PLAY_REGIONS) and brokersPerZone is realigned to it.
    • MRC placement. sync/observers are floored ≥0; total sync forced ≥1 (a leader); the total broker count is trimmed to ≤ 9 by dropping observers first, then sync (never below 1 total sync).
    • Default‑equal drop. Timing overrides, seed, observer policy, KRaft voters, schema‑registry/authz/control‑plane and the primary‑topic config are kept only when they differ from the (type, size) default, and several are valid only for certain topologies (observer policy → MRC only; control‑plane ZooKeeper → single‑DC only; region/link overrides → mirror types). A default‑equal or out‑of‑scope value is dropped, so it never appears in the re‑encoded slug.

Because of the default‑equal drop, a round‑trip is canonicalizing: encode(decode(s)) yields the shortest slug for the shape s describes, which may be shorter than s if s spelled out default fields. For a slug that is already canonical (no clamping, no default fields) the round‑trip is the identity - the property the conformance test asserts.


13. Stable vs internal - the generator‑safe subset

The slug is a persistence layer (§15), so existing encodings keep their meaning. But the tail keeps growing (new fields appended at ever‑higher indices), so a generator should target the durable, structural core and let everything else default:

Generator‑safe (recommended to emit). These map directly onto a real cluster’s observable structure and are the stable contract:

  • broker count per zone - the base’s first segment;
  • primary‑topic partitions and replication factor - the base’s 2nd/3rd segments;
  • extra topics with their name / partitions / replicationFactor / minInSyncReplicas / cleanup policy (tail 0);
  • racks - rackAware (tail 3) and per‑broker racks / managed rackNames (tail 4 / 11), for a rack‑aware layout.

Internal / likely‑to‑change (prefer to omit). Emit only if you specifically need the behavior; expect the encoding to evolve:

  • engine timing overrides (tail 8) and PRNG seed (tail 9) - presentation/replay tuning, not cluster structure;
  • observerPromotionPolicy, kraftVoters, schemaRegistry, authz, controlPlane (tail 12-16) - feature toggles gated by topology and release channel;
  • the exact tail‑length scheme and empty‑segment padding - an implementation detail. Do not hand‑assemble a tail; let a tested encoder produce it, such as the one in monedula-sim-link (or emit just the base, or base + extraTopics, which are the simplest stable forms).

The simplest safe strategy for a tool reproducing a real cluster: emit the base (brokers x partitions x rf) plus, if the cluster has more than one topic, the extraTopics segment - and omit the entire rest of the tail. That reproduces the broker/topic/partition/RF structure with the shortest, most future‑proof slug, and leaves timing/seed/feature knobs at their faithful defaults.


14. Worked size examples

Every size string below is asserted verbatim in the simulator’s conformance test: it is decoded, its shape checked, and re‑encoded to prove stability (or, for the clamping examples, to prove it canonicalizes to the stated form).

14.1 The topology defaults (omitted from the URL)

These are what an omitted size means, per cluster:

  • single-dc → 3x3x3 (3 brokers, 3 partitions, RF 3)
  • active-passive → 2-2x1x2
  • stretched-2-5 (MRC) → 2-2x1-1x1 (2 sync + 1 observer per DC, RF 4)

Because they equal the default, the playground never actually writes them - a default single‑DC cluster is just:

https://monedula.dev/kafka-simulator/playground?scenario=free

14.2 A 6‑broker single‑DC cluster, 4 partitions, RF 3

https://monedula.dev/kafka-simulator/playground?scenario=free&size=6x4x3

size=6x4x3 ⇒ one zone of 6 brokers, primary topic orders with 4 partitions and replication factor 3.

14.3 A 6‑broker single‑DC cluster with two extra topics

Add payments (6 partitions, RF 3, min.ISR 2, delete) and audit (2 partitions, RF 2, min.ISR 1, compact) to the 6‑broker cluster:

6x4x3xpayments~6~3~2~d~~~~!audit~2~2~1~c~~~~

Full URL (the slug is URL‑safe as‑is - §11):

https://monedula.dev/kafka-simulator/playground?scenario=free&size=6x4x3xpayments~6~3~2~d~~~~!audit~2~2~1~c~~~~

The tail here is a single segment (extra topics only): orders (primary) + payments + audit, three topics total.

14.4 Initial producers and consumer groups

A 4‑broker single‑DC cluster started with two producers (p1 acks=all idempotent, p2 acks=1) and two consumer groups (g1 with 2 members, g2 with 1):

4x3x3xxall~1~~~~~~~~!1~0~~~~~~~~x2!1

The tail is 3 segments - x<extraTopics>x<producers>x<groups> - with the extraTopics segment empty.

14.5 A rack‑aware single‑DC cluster

4x3x3xxxx1x

The tail is 5 segments; only rackAware (index 3) is set (1), so the four earlier/later padding segments are empty.

14.6 Clamping - values that get corrected on decode

These slugs decode to a different, clamped shape (§12); the test decodes each and asserts the corrected canonical form:

  • 12x3x3 → 10x3x3 - 12 brokers exceeds the single‑DC cap of 10.
  • 6x3x10 → 6x3x6 - RF 10 exceeds the 6 available brokers.

15. Stability note

This grammar is the persistence layer for shared links and browser history; it must stay backward‑compatible with every URL already in the wild. Changes are therefore additive (new kind codes, new optional suffixes on existing kinds, new accepted config_change paths, new reversible escapes that only appear where the old encoding was already broken) - existing encodings never change meaning.

Recommendations for generators:

  • Produce the plain (uncompressed) form and stay under the 1500‑char compression threshold when you can.
  • Percent‑encode the actions (and select) parameter value (§7.4).
  • Free text in a produce KEY / VALUE, in the authz principal / resource / role / targetId fields (add_acl / remove_acl / bind_role / assign_principal) and in the add_group region / rack / principal settings (§2.4) is escapable (§2.2); keep separator characters (, : @ ~ . | =) out of the still‑raw fields - ids and topic names (§7.2).
  • Keep ~, : and @ out of free‑text config_change values (§7.3).
  • Only emit config_change paths from the §6 whitelist.
  • Validate that your log decodes to what you intended before shipping a link - the decoder drops unparseable entries silently (§3).

16. Embedding

The embed view is the playground’s canvas with one row of controls under it, meant to sit in an <iframe> on another site. It is the one page of the site that other sites may frame. The row holds the transport, a scrubber with one segment per step (the current step named in full below it, any other in a tooltip), the playback speed, and the canvas zoom; on a frame 900px or wider also the canvas view (where the topology has more than one) and the legend. Ctrl/Cmd+wheel (or a trackpad pinch) over the canvas zooms it as well; a plain wheel scrolls the host page as before. Nothing floats over the canvas. A canvas wider than 1.8:1 draws in its compact layout, the one the playground shows on a desktop window, since the wide one would be drawn smaller there; at the default 520px height that is every frame wide enough for the wide layout.

https://monedula.dev/kafka-simulator/embed/

It is playback only: it never opens a sandbox, has no auto-loop, and an edit (a click on the canvas, such as “+ producer”) is refused with a link to the full playground. It reads two kinds of link:

Link Params read What it plays
A scripted scenario scenario, t The scenario’s walkthrough, opened at frame t. actions is ignored.
A free-play run scenario=free, cluster, size, actions, t The setup and its recorded run (below), opened at tick t of the run’s timeline.

Both also read theme=dark or theme=light, so the frame can match the host page, and keep it when scrubbing rewrites the frame’s URL. Every other parameter is ignored.

A free-play run replays the action log against the free-play setup the way the playground’s sandbox recorded it: any leading structural actions (adding brokers, producers or groups, config changes) are folded into the first frame, then the engine advances in 1.2 s steps with each action applied at its time, and after the last action it keeps going until the cluster settles, for at most 30 s of sim time. The timeline shows the same ticks and labels the sandbox timeline did. The run is recomputed on every load with the current engine, so an engine fix can change what an old embed shows. A run that would take more than 800 of those steps (about 16 minutes of sim time, fewer when it records many actions) shows “This run is too long to play here.” with a link to the full playground instead of a frozen frame.

A free-play link the release cannot show as asked shows “This setup is not available in the simulator yet.” with a link to the full playground. That is an unknown or not yet released cluster, size fields the release withholds, a size that does not decode back to the same string (garbage or out of range), or an actions value with any entry that does not decode or that the 2000-action cap would drop. It never falls back to a different cluster or a shorter run. A run that decodes but fails to replay shows “This run could not be replayed.” instead.

The playground’s Share link → Embed code button writes the snippet: the <iframe> plus a plain credit link under it. In free play it keeps only scenario, cluster, size, actions and theme from the current URL, so Clear state before recording to start the run from your setup, and step Back to trim its end. The <iframe> carries referrerpolicy="no-referrer-when-downgrade", so the simulator’s visit counter sees the full address of the page it is embedded on rather than only its domain; remove the attribute to send the domain only.

16.1 Examples

A scripted scenario, at its fourth frame:

https://monedula.dev/kafka-simulator/embed/?scenario=03.2.1&t=3

Active/passive with a Lenses K2K link, killing the primary’s broker-1 at 8.5 s (the size value is what the playground writes after switching the default link to K2K):

https://monedula.dev/kafka-simulator/embed/?scenario=free&cluster=active-passive&size=2-2x1x2xxxxxxprimary!drx0-1-k&actions=K%3Abroker-1%408500