Kafka data generator and load testing tool - generate fake messages, simulate producers and consumers, test broker failures, and run chaos engineering scenarios
Go apache-kafkaapache-sparkchaos-engineeringconsumer-lagdata-engineeringdata-generatordevopsdevops-toolsfake-datafault-injectionflinkkafkakafka-consumerkafka-data-generatorkafka-load-testingkafka-producerkafka-test-dataload-testingstream-processingstress-testing
feat: add --flow-concurrency, ping the cluster at startup, warn per schemaless topic, list the testing category
aleksandarskrbic1f53b68dba80
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 292e45e..574b51c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [Unreleased]++### Added+- `--flow-concurrency` on `run` and `simulate` bounds how many flow instances may be+ in flight at once. The default `0` keeps issuance unbounded; when bounded, issuance+ blocks and the dashboard reports the event as `saturated`.+- `khaos list` groups the `scenarios/testing/` scenarios under a "Consumer Testing"+ heading with a blurb, like every other category.++### Changed+- An unreachable cluster now fails `run` and `simulate` at startup with one explained+ error instead of at the first produce from inside the worker goroutines.+- The schemaless-mode warning ("Using Avro without Schema Registry") is emitted once per+ avro/protobuf topic, at that topic's `data_format` line, rather than once per file on+ whichever topic came last.+## [0.9.0] - 2026-08-22### Addeddiff --git a/cmd/khaos/list_contract_test.go b/cmd/khaos/list_contract_test.goindex 1360167..5c80aa1 100644--- a/cmd/khaos/list_contract_test.go+++ b/cmd/khaos/list_contract_test.go@@ -34,6 +34,7 @@ func TestListOutputContract(t *testing.T) {"Chaos Engineering","Event Flows","Serialization",+ "Consumer Testing","traffic/high-throughput", // asserted by the homebrew formula"Usage: khaos run <scenario>", // trailing usage hint} {@@ -48,7 +49,7 @@ func TestListCategoryOrder(t *testing.T) {t.Parallel()out := listOutput(t)- order := []string{"Traffic Patterns", "Chaos Engineering", "Event Flows", "Serialization"}+ order := []string{"Traffic Patterns", "Chaos Engineering", "Event Flows", "Serialization", "Consumer Testing"}prev := -1for _, heading := range order {at := strings.Index(out, heading)@@ -62,20 +63,21 @@ func TestListCategoryOrder(t *testing.T) {}}-// A category khaos has no blurb for -- `testing/` is one today -- must still be listed,-// title-cased, after the four known ones.+// A category khaos has no blurb for -- every bundled directory has one today, so this is+// pinned on the helpers rather than on `list` output -- must still be listed, title-cased+// and blurb-less, after every known one.func TestListIncludesUnknownCategoriesLast(t *testing.T) {t.Parallel()- out := listOutput(t)- // Rows sit inside a lipgloss border, so a heading is no longer at column 0; match the- // heading text itself rather than assuming it follows a newline.- known := strings.Index(out, "Serialization")- unknown := strings.Index(out, "Testing")- if unknown < 0 {- t.Fatalf("unknown category `testing` missing from list output\n---\n%s", out)+ for _, known := range categoryOrder {+ if categoryRank("soak") <= categoryRank(known) {+ t.Errorf("unknown category sorted at or before known category %q", known)+ }+ }+ if heading, blurb := categoryDisplay("soak"); heading != "Soak" || blurb != "" {+ t.Errorf("categoryDisplay(soak) = %q, %q; want title-cased name and no blurb", heading, blurb)}- if unknown < known {- t.Error("an unlisted category sorted before a known one")+ if heading, _ := categoryDisplay(""); heading != "Other" {+ t.Errorf("categoryDisplay(\"\") = %q; want Other", heading)}}diff --git a/cmd/khaos/run.go b/cmd/khaos/run.goindex a25ff94..69fef53 100644--- a/cmd/khaos/run.go+++ b/cmd/khaos/run.go@@ -40,6 +40,7 @@ type runFlags struct {srCertLocation stringsrKeyLocation stringlagPoll time.Duration+ flowConcurrency intseed uint64tuiMode string // auto | on | off@@ -86,6 +87,8 @@ func (f *runFlags) bind(c *cobra.Command) {// produced-minus-consumed, which is not consumer lag at all.c.Flags().DurationVar(&f.lagPoll, "lag-poll", 0,"poll brokers for real consumer-group lag at this interval (0 disables)")+ c.Flags().IntVar(&f.flowConcurrency, "flow-concurrency", 0,+ "max flow instances in flight at once; 0 is unbounded, a bound blocks issuance and counts it as saturated")c.Flags().Uint64Var(&f.seed, "seed", 0, "seed for generated data; 0 picks one and reports it")c.Flags().StringVar(&f.tuiMode, "tui", "auto", "terminal UI: auto, on or off")@@ -179,34 +182,7 @@ func runCmd(newCluster func(kraft bool) (localCluster, error)) *cobra.Command {// so a scenario that panics or errors still stops the cluster: a run that// leaks a three-broker cluster on every failure is how a laptop ends up with// no memory left.- defer func() {- // Nothing came up, so there is nothing to stop and nothing truthful to- // say about it.- if !up {- return- }- if keepCluster {- fmt.Fprintln(stderr, styDim.Render("Kafka cluster left running · khaos cluster-down to stop"))- return- }- // Printed unconditionally: the cluster is stopped whether or not this- // process started it, and a silent teardown of a cluster the user started- // by hand is the surprising case, not the quiet one.- if !started {- fmt.Fprintln(stderr, styDim.Render("(the cluster was already running; pass -k to keep it)"))- }- stopCtx, cancel := context.WithTimeout(context.WithoutCancel(c.Context()), 2*time.Minute)- defer cancel()- // false: `run` never asked to remove volumes. Only `cluster-down --volumes`- // does.- if err := spin(stderr, "Stopping Kafka cluster", "", func() error {- return cluster.Down(stopCtx, false)- }); err != nil {- fmt.Fprintf(stderr, "khaos: could not stop cluster: %v\n", err)- return- }- spinDone(stderr, "Kafka cluster stopped", "")- }()+ defer teardownCluster(c.Context(), stderr, cluster, up, started, keepCluster)servers := bootstrapif servers == "" {@@ -216,9 +192,14 @@ func runCmd(newCluster func(kraft bool) (localCluster, error)) *cobra.Command {}}- return execute(c.Context(), c.OutOrStdout(), stderr, args, kafka.Config{- BootstrapServers: splitServers(servers),- }, cluster, &f)+ return execute(c.Context(), runRequest{+ Stdout: c.OutOrStdout(),+ Stderr: stderr,+ Names: args,+ Kafka: kafka.Config{BootstrapServers: splitServers(servers)},+ Cluster: cluster,+ Flags: &f,+ })},}@@ -231,6 +212,37 @@ func runCmd(newCluster func(kraft bool) (localCluster, error)) *cobra.Command {return cmd}+// teardownCluster is `run`'s end-of-run cluster policy: stop the cluster unless+// --keep-cluster, and say what happened on stderr. up is whether a cluster was ever+// running; started is whether this process started it. ctx may already be cancelled: the+// stop runs on a detached, two-minute context of its own.+func teardownCluster(ctx context.Context, stderr io.Writer, cluster localCluster, up, started, keep bool) {+ // Nothing came up, so there is nothing to stop and nothing truthful to say about it.+ if !up {+ return+ }+ if keep {+ fmt.Fprintln(stderr, styDim.Render("Kafka cluster left running · khaos cluster-down to stop"))+ return+ }+ // Printed unconditionally: the cluster is stopped whether or not this process started+ // it, and a silent teardown of a cluster the user started by hand is the surprising+ // case, not the quiet one.+ if !started {+ fmt.Fprintln(stderr, styDim.Render("(the cluster was already running; pass -k to keep it)"))+ }+ stopCtx, cancel := context.WithTimeout(context.WithoutCancel(ctx), 2*time.Minute)+ defer cancel()+ // false: `run` never asked to remove volumes. Only `cluster-down --volumes` does.+ if err := spin(stderr, "Stopping Kafka cluster", "", func() error {+ return cluster.Down(stopCtx, false)+ }); err != nil {+ fmt.Fprintf(stderr, "khaos: could not stop cluster: %v\n", err)+ return+ }+ spinDone(stderr, "Kafka cluster stopped", "")+}+func newSimulateCmd() *cobra.Command {var (f runFlags@@ -260,11 +272,17 @@ func newSimulateCmd() *cobra.Command {}// Brokers is nil: an external cluster gets the no-op controller, so broker// incidents surface as events instead of doing nothing at all.- return execute(c.Context(), c.OutOrStdout(), c.ErrOrStderr(), args, kafka.Config{- BootstrapServers: splitServers(boot),- Security: sec,- External: true,- }, nil, &f)+ return execute(c.Context(), runRequest{+ Stdout: c.OutOrStdout(),+ Stderr: c.ErrOrStderr(),+ Names: args,+ Kafka: kafka.Config{+ BootstrapServers: splitServers(boot),+ Security: sec,+ External: true,+ },+ Flags: &f,+ })},}@@ -330,18 +348,30 @@ func (f *runFlags) registry() codec.RegistryConfig {}}+// runRequest is everything execute needs beyond its context: the command's writers, the+// scenario names or paths as given on the command line, the broker configuration, the+// managed local cluster (nil under `simulate`) and the parsed flags.+type runRequest struct {+ Stdout, Stderr io.Writer+ Names []string+ Kafka kafka.Config+ Cluster localCluster+ Flags *runFlags+}+// execute is the shared body of run and simulate.//// Several scenarios can run together: their topics, incidents and flows are concatenated// into one run.-func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfg kafka.Config, cluster localCluster, f *runFlags) error {+func execute(ctx context.Context, req runRequest) error {+ stderr, f := req.Stderr, req.FlagsuseTUI, level, err := f.resolve()if err != nil {return err}- scenarios := make([]*scenario.Scenario, 0, len(names))- for _, name := range names {+ scenarios := make([]*scenario.Scenario, 0, len(req.Names))+ for _, name := range req.Names {sc, err := loadScenario(stderr, name)if err != nil {return err@@ -357,8 +387,8 @@ func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfg}var brokers engine.BrokerController- if cluster != nil {- brokers = cluster+ if req.Cluster != nil {+ brokers = req.Cluster}// A registry is only built when --metrics-addr is set: an idle Metrics struct nobody@@ -371,7 +401,7 @@ func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfg}ecfg := engine.Config{- Kafka: kcfg,+ Kafka: req.Kafka,Scenarios: scenarios,Duration: time.Duration(f.duration),NoConsumers: f.noConsumers,@@ -381,6 +411,7 @@ func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfgBrokers: brokers,Registry: f.registry(),LagPoll: f.lagPoll,+ FlowConcurrency: f.flowConcurrency,Logger: logger,Metrics: metrics,}@@ -390,15 +421,15 @@ func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfgreturn err}- names_ := make([]string, len(scenarios))+ scenarioNames := make([]string, len(scenarios))topics, flows := 0, 0for i, s := range scenarios {- names_[i] = s.Name+ scenarioNames[i] = s.Nametopics += len(s.Topics)flows += len(s.Flows)}logger.Info("starting run",- "scenarios", strings.Join(names_, ", "),+ "scenarios", strings.Join(scenarioNames, ", "),"topics", topics,"flows", flows,"duration", time.Duration(f.duration),@@ -453,7 +484,7 @@ func execute(ctx context.Context, stdout, stderr io.Writer, names []string, kcfg<-srvDone}- summary(stdout, eng.Snapshot(), useTUI)+ summary(req.Stdout, eng.Snapshot(), useTUI)return runErr}diff --git a/cmd/khaos/scenarios.go b/cmd/khaos/scenarios.goindex 01a369d..f16eb80 100644--- a/cmd/khaos/scenarios.go+++ b/cmd/khaos/scenarios.go@@ -56,15 +56,15 @@ func printDiagnostics(w io.Writer, name string, diags scenario.Diagnostics) {// named here sorts last, under a title-cased version of its own name, so dropping a new// scenario directory into scenarios/ still lists it. list_contract_test.go pins both// halves of that.-var categoryOrder = []string{"traffic", "chaos", "flows", "serialization"}+var categoryOrder = []string{"traffic", "chaos", "flows", "serialization", "testing"}-// categoryInfo is the heading and the one-line blurb for each known scenario directory:-// {heading, blurb}.-var categoryInfo = map[string][2]string{+// categoryInfo is the heading and the one-line blurb for each known scenario directory.+var categoryInfo = map[string]struct{ Heading, Blurb string }{"traffic": {"Traffic Patterns", "Basic traffic generation scenarios"},"chaos": {"Chaos Engineering", "Fault injection and incident scenarios"},"flows": {"Event Flows", "Correlated multi-topic event flows"},"serialization": {"Serialization", "Avro and Protobuf format examples"},+ "testing": {"Consumer Testing", "Consumer failure, retry and duplicate-delivery scenarios"},}func newListCmd() *cobra.Command {@@ -82,22 +82,7 @@ func newListCmd() *cobra.Command {return nil}- byCategory := make(map[string][]string)- for name := range found {- category, _, ok := strings.Cut(name, "/")- if !ok {- category = ""- }- byCategory[category] = append(byCategory[category], name)- }-- categories := make([]string, 0, len(byCategory))- for cat := range byCategory {- categories = append(categories, cat)- }- sort.Slice(categories, func(i, j int) bool {- return categoryRank(categories[i]) < categoryRank(categories[j])- })+ categories, byCategory := groupByCategory(found)t := newListTable("SCENARIO", "DESCRIPTION")@@ -108,9 +93,7 @@ func newListCmd() *cobra.Command {display, blurb := categoryDisplay(cat)t.Row(styCategory.Render(display), styDim.Render(blurb))- names := byCategory[cat]- sort.Strings(names)- for _, name := range names {+ for _, name := range byCategory[cat] {desc := ""// A scenario that fails to parse is still listed, by name, rather than// skipped silently: a broken file should be visible, not invisible.@@ -153,6 +136,32 @@ func tableWidth() int {return w}+// groupByCategory buckets discovered scenario names by their directory, sorting the names+// within each bucket. categories is the bucket keys in categoryOrder's order; a name with+// no directory lands under "".+func groupByCategory(found map[string]string) (categories []string, byCategory map[string][]string) {+ byCategory = make(map[string][]string)+ for name := range found {+ category, _, ok := strings.Cut(name, "/")+ if !ok {+ category = ""+ }+ byCategory[category] = append(byCategory[category], name)+ }+ for _, names := range byCategory {+ sort.Strings(names)+ }++ categories = make([]string, 0, len(byCategory))+ for cat := range byCategory {+ categories = append(categories, cat)+ }+ sort.Slice(categories, func(i, j int) bool {+ return categoryRank(categories[i]) < categoryRank(categories[j])+ })+ return categories, byCategory+}+// categoryRank orders known categories first, in categoryOrder's declared order.func categoryRank(cat string) int {for i, c := range categoryOrder {@@ -166,7 +175,7 @@ func categoryRank(cat string) int {// categoryDisplay returns the heading and blurb, title-casing unknown directories.func categoryDisplay(cat string) (string, string) {if info, ok := categoryInfo[cat]; ok {- return info[0], info[1]+ return info.Heading, info.Blurb}if cat == "" {return "Other", ""diff --git a/internal/engine/engine.go b/internal/engine/engine.goindex 93a82ec..854a2fb 100644--- a/internal/engine/engine.go+++ b/internal/engine/engine.go@@ -108,6 +108,15 @@ type Config struct {// failing the run.LagPoll time.Duration+ // FlowConcurrency bounds how many flow instances may be mid-flight at once. Zero+ // means unbounded -- the default, because bounding is an observable change: at+ // saturation the pool must either block issuance (actual flow rate drops below+ // configured), drop work, or queue unboundedly, so opting into a bound is explicit.+ // When bounded, issuance BLOCKS and counts the event, visible in the snapshot as+ // Saturated rather than silent. At rate=50 with multi-second step delays the steady+ // state is a few hundred instances.+ FlowConcurrency int+Logger *slog.Logger// Metrics is where per-message Prometheus counters are recorded, keyed by topic and@@ -239,6 +248,13 @@ func New(ctx context.Context, cfg Config) (*Engine, error) {}e.admin = admin+ // Fail on an unreachable cluster here, with one explained error, rather than at the+ // first produce from inside a dozen goroutines.+ if err := admin.Ping(ctx); err != nil {+ admin.Close()+ return nil, err+ }+if err := e.setupTopics(ctx); err != nil {admin.Close()return nil, errdiff --git a/internal/engine/flow.go b/internal/engine/flow.goindex b193563..b430bc3 100644--- a/internal/engine/flow.go+++ b/internal/engine/flow.go@@ -14,15 +14,6 @@ import ("golang.org/x/time/rate")-// DefaultFlowConcurrency bounds how many flow instances may be mid-flight at once. Zero-// means unbounded -- the default, because bounding is an observable change: at-// saturation the pool must either block issuance (actual flow rate drops below-// configured), drop work, or queue unboundedly, so opting into a bound is explicit.-// When bounded, this implementation BLOCKS and counts the event, visible in the-// snapshot as Saturated rather than silent. At rate=50 with multi-second step delays-// the steady state is a few hundred instances.-var DefaultFlowConcurrency = 0-// flowDrainSlack is added to the sum of a flow's step delays to bound the post-cancellation// join; the 500ms covers produce and flush latency on top of the configured delays.const flowDrainSlack = 500 * time.Millisecond@@ -71,14 +62,15 @@ type flowRunner struct {// production is tallied in flowCounters alone, exactly as before.topicC map[string]*counters- // concurrency is a counting semaphore bounding in-flight instances.+ // concurrency is a counting semaphore bounding in-flight instances, nil when+ // Config.FlowConcurrency is zero.concurrency chan struct{}// drain bounds the post-cancellation join. See drainBudget.drain time.Duration}-func newFlowRunner(f scenario.Flow, gen *generate.FlowGen, client *kgo.Client, stats *flowCounters, events *eventRing, topicC map[string]*counters) *flowRunner {+func newFlowRunner(f scenario.Flow, gen *generate.FlowGen, client *kgo.Client, stats *flowCounters, events *eventRing, topicC map[string]*counters, concurrency int) *flowRunner {return &flowRunner{name: f.Name,gen: gen,@@ -87,7 +79,7 @@ func newFlowRunner(f scenario.Flow, gen *generate.FlowGen, client *kgo.Client, sstats: stats,events: events,topicC: topicC,- concurrency: newSemaphore(DefaultFlowConcurrency),+ concurrency: newSemaphore(concurrency),drain: drainBudget(f),}}@@ -234,7 +226,7 @@ func (e *Engine) buildFlow(tb *topicTableBuilder, scenarioName string, f scenaristats := &flowCounters{}e.flowStats[f.Name] = statse.flowOrder = append(e.flowOrder, f.Name)- e.flows = append(e.flows, newFlowRunner(f, gen, client, stats, e.events, topicC))+ e.flows = append(e.flows, newFlowRunner(f, gen, client, stats, e.events, topicC, e.cfg.FlowConcurrency))return nil}diff --git a/internal/engine/stats.go b/internal/engine/stats.goindex cff70ee..ac1d56b 100644--- a/internal/engine/stats.go+++ b/internal/engine/stats.go@@ -109,7 +109,7 @@ type FlowStat struct {InFlight int64// Saturated counts the times issuance had to block on a full pool, and stays at zero- // unless DefaultFlowConcurrency was raised above zero.+ // unless Config.FlowConcurrency was raised above zero.Saturated int64}diff --git a/internal/scenario/validate_test.go b/internal/scenario/validate_test.goindex dd96735..de6cb79 100644--- a/internal/scenario/validate_test.go+++ b/internal/scenario/validate_test.go@@ -922,6 +922,45 @@ func TestValidateReportsLineNumbers(t *testing.T) {}}+// TestSchemalessWarningPerTopic pins that every avro/protobuf topic without a Schema+// Registry gets its own warning, anchored at its own data_format line.+func TestSchemalessWarningPerTopic(t *testing.T) {+ doc := "name: s\n" + // 1+ "topics:\n" + // 2+ " - name: orders\n" + // 3+ " message_schema:\n" + // 4+ " data_format: avro\n" + // 5+ " fields:\n" + // 6+ " - name: id\n" + // 7+ " type: uuid\n" + // 8+ " - name: payments\n" + // 9+ " message_schema:\n" + // 10+ " data_format: avro\n" + // 11+ " fields:\n" + // 12+ " - name: id\n" + // 13+ " type: uuid\n" // 14++ _, diags := Decode([]byte(doc))+ if errs := diags.Errors(); len(errs) > 0 {+ t.Fatalf("want no errors, got:\n%s", errs)+ }+ warns := diags.Warnings()+ if len(warns) != 2 {+ t.Fatalf("want exactly two warnings, got:\n%s", warns)+ }+ for i, wantLine := range []int{5, 11} {+ if warns[i].Path != "schema_registry" {+ t.Errorf("warns[%d].Path = %q, want %q", i, warns[i].Path, "schema_registry")+ }+ if want := "Using Avro without Schema Registry (schemaless mode)"; warns[i].Message != want {+ t.Errorf("warns[%d].Message = %q, want %q", i, warns[i].Message, want)+ }+ if warns[i].Line != wantLine {+ t.Errorf("warns[%d].Line = %d, want %d (that topic's data_format)", i, warns[i].Line, wantLine)+ }+ }+}+// TestClusterAssumptionsAreOneSwitch pins that relaxing the hardcoded cluster is a// single assignment, not an edit spread across the validator.func TestClusterAssumptionsAreOneSwitch(t *testing.T) {diff --git a/internal/scenario/validate_topic.go b/internal/scenario/validate_topic.goindex 2c8d218..7023529 100644--- a/internal/scenario/validate_topic.go+++ b/internal/scenario/validate_topic.go@@ -7,30 +7,22 @@ import ("go.yaml.in/yaml/v3")-// topics validates the topic list and emits the schemaless-mode warning.-//-// The warning names the data_format of the LAST avro/protobuf topic seen, since the-// scan reassigns schemaFormatName on every matching topic in the loop.+// topics validates the topic list and emits the schemaless-mode warning once per+// avro/protobuf topic, anchored at that topic's data_format.func (v *validator) topics(n *yaml.Node, hasSchemaRegistry bool) {if !isSequence(n) {v.errf(n, "topics", "Field 'topics' must be a list")return}- schemaFormatName := ""- var lastFormatNode *yaml.Nodefor i, topic := range seqItems(n) {path := index("topics", i)v.topic(topic, path)format := mapGet(mapGet(topic, "message_schema"), "data_format")- if text := scalarText(format); text == "avro" || text == "protobuf" {- schemaFormatName = text- lastFormatNode = format+ if text := scalarText(format); (text == "avro" || text == "protobuf") && !hasSchemaRegistry {+ v.warnf(format, "schema_registry",+ "Using %s without Schema Registry (schemaless mode)", title(text))}}- if schemaFormatName != "" && !hasSchemaRegistry {- v.warnf(lastFormatNode, "schema_registry",- "Using %s without Schema Registry (schemaless mode)", title(schemaFormatName))- }}// title upper-cases the first letter of a single-word format name ("avro" -> "Avro",diff --git a/internal/tui/render_test.go b/internal/tui/render_test.goindex 31c2ef6..9cee48a 100644--- a/internal/tui/render_test.go+++ b/internal/tui/render_test.go@@ -415,7 +415,7 @@ func TestHeaderReportsRunState(t *testing.T) {// A run with no flows pays nothing for the flow table -- no header, no frame, no lines out// of the height budget. A run with flows also gets the saturation marker, which says the// configured concurrency bound, not the configured rate, is what is holding the flow back-// (see DefaultFlowConcurrency in internal/engine/flow.go).+// (see Config.FlowConcurrency in internal/engine).func TestFlowTableRendersOnlyWhenThereAreFlows(t *testing.T) {without := plain(viewOf(t, engine.Snapshot{Topics: []engine.TopicStat{{Topic: "orders"}}}))if strings.Contains(without, "INFLIGHT") {diff --git a/website/content/docs/reference/cli.mdx b/website/content/docs/reference/cli.mdxindex 2689b8c..77c0e45 100644--- a/website/content/docs/reference/cli.mdx+++ b/website/content/docs/reference/cli.mdx@@ -36,6 +36,7 @@ it isn't already running.| `--schema-registry-token` | | - | Schema Registry bearer token, instead of basic auth. || `--schema-registry-ca-location` / `--schema-registry-cert-location` / `--schema-registry-key-location` | | - | CA / client cert / client key for the registry connection (mTLS). || `--lag-poll` | | `0` (off) | Poll brokers for real consumer-group lag at this interval, e.g. `5s`. See [Consumer Lag Testing](/docs/guides/consumer-lag-testing). |+| `--flow-concurrency` | | `0` (unbounded) | Cap on flow instances in flight at once. When the cap is hit, issuance blocks and the dashboard's flow table shows a `saturated` count. || `--seed` | | `0` | Seed for generated data. `0` picks one at random and reports it, so a run is reproducible after the fact. || `--tui` | | `auto` | `auto`, `on`, or `off`. `auto` shows the live dashboard only on a real TTY (not in CI or with `TERM=dumb`). || `--log-json` | | `false` | Emit structured JSON logs instead of text. |