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

Pipeline tuning

Error handling and topic creation retries.

Replication runs continuously, and transient failures — a topic not yet visible after creation, a corrupted control message — should not always stop the pipeline. Kafka's admin API and internal topics can be briefly inconsistent after changes, therefore K2K exposes retry and error-handling settings for these cases.

Parallelism tuning is in Horizontal scaling. Consumer, producer, and commit performance tuning is in Replication performance tuning. Commit batching is in Commit tuning. Offset mapper error handling is in Offset mapping.

Prerequisites

Example

name: "my_pipeline"
source:
  kafka:
    common:
      "bootstrap.servers": "source:9092"
    consumer:
      "group.id": "my-k2k-group"
target:
  kafka:
    common:
      "bootstrap.servers": "target:9092"
configuration:
  autoControlTopicCreationCheckDelay: "750 milliseconds"
  autoControlTopicCreationMaxAttempts: 10
errorHandling:
  onCommitSyncTimeout: fail
  onControlMessageDeserializationError: ignore
replication:
  - source:
      topic: "orders.*"
  - sink:
      topic: source
      partition: source

Configuration keys

Topic creation retries

Key
Description
Required
Default
Used by

configuration.autoControlTopicCreationCheckDelay

Wait between retries when verifying a created topic exists

No

750 milliseconds

Both

configuration.autoControlTopicCreationMaxAttempts

Max retries when verifying topic creation

No

10

Both

Replicator error handling

Key
Description
Required
Default
Used by

errorHandling.onCommitSyncTimeout

Action when commit sync times out (fail or ignore)

No

fail

Replicator

errorHandling.onControlMessageDeserializationError

Action when a control message cannot be deserialized (fail or ignore)

No

ignore

Replicator

Last updated

Was this helpful?