For the complete documentation index, see llms.txt. This page is also available as Markdown.

Commit tuning

Commit batching for exactly once replication.

Exactly once replication records progress in batches rather than after every record. Each commit waits for acknowledgement from the target Kafka cluster. Larger batches commit less often and hold more records in flight, trading memory for throughput.

Tune coordination.commit.batchSize when the defaults do not match your throughput or memory constraints. See Replication performance tuning for how commit batching interacts with consumer poll size and producer buffering. See Consumer group for the commit control topic name. K2K defaults should cover most use cases.

Prerequisites

Example

Use the following pipeline configuration:

name: "my_pipeline"
features:
  exactlyOnce: enabled
source:
  kafka:
    common:
      "bootstrap.servers": "source:9092"
    consumer:
      "group.id": "my-k2k-group"
target:
  kafka:
    common:
      "bootstrap.servers": "target:9092"
coordination:
  commit:
    batchSize: 50000
    batchTimeout: "30 seconds"
replication:
  - source:
      topic: "orders.*"
  - sink:
      topic: source
      partition: source

Configuration keys

Key
Description
Required
Default
Used by

coordination.commit.batchSize

Records to accumulate before committing progress

No

30000

Replicator

coordination.commit.batchTimeout

Max wait before committing a partial batch

No

30 seconds

Replicator

coordination.commit.parallelizationLimit

Concurrent batches awaiting acknowledgement

No

2

Replicator

coordination.commit.pendingAckQueueSize

Max commit batches in the acknowledgement queue

No

5

Replicator

Last updated

Was this helpful?