Skip to content

docs(kafka): document connection timeouts, health check, and tunable producer config (OSS-1152)#5223

Draft
nelson-parente wants to merge 2 commits into
dapr:v1.18from
nelson-parente:oss-1152-kafka-timeout-docs
Draft

docs(kafka): document connection timeouts, health check, and tunable producer config (OSS-1152)#5223
nelson-parente wants to merge 2 commits into
dapr:v1.18from
nelson-parente:oss-1152-kafka-timeout-docs

Conversation

@nelson-parente

Copy link
Copy Markdown
Contributor

Summary

Documents the new metadata fields added to the shared Kafka client in dapr/components-contrib (OSS-1152 / dapr/components-contrib#4413):

  • dialTimeout, readTimeout, writeTimeout — Net timeout tunables (default 30 s each), bounding how long Init() can block on an unreachable cluster.
  • metadataTimeout — per-request metadata refresh timeout (default 0 / disabled, Sarama computes from Net timeouts × retry count).
  • producerRequiredAcks — replaces the previously hard-coded WaitForAll; accepts "all" (default), "local", "none".
  • producerRetryMax — replaces the previously hard-coded 5; configurable integer (default 5).

Both the pub/sub reference doc (setup-apache-kafka.md) and the binding reference doc (kafka.md) are updated.

Testing

✅ Markdown renders correctly locally
✅ New rows match the format and column count of existing table entries
☐ Hugo build / link-checker — pending CI

Related

…ig metadata

OSS-1152: document the new metadata fields added to the shared Kafka client
for connection timeouts (dialTimeout, readTimeout, writeTimeout,
metadataTimeout), producer tunability (producerRequiredAcks, producerRetryMax),
and the associated Ping() health-check method.

Updates both the pub/sub reference doc (setup-apache-kafka.md) and the
bindings reference doc (kafka.md) with defaults, examples, and descriptions
consistent with the implementation.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Dapr docs to reflect newly added, configurable timeout and producer settings in the shared Kafka client (per OSS-1152 / components-contrib#4413), so users can tune connection/metadata timeouts and producer durability/retry behavior.

Changes:

  • Documented dialTimeout, readTimeout, writeTimeout, and metadataTimeout in both Kafka pub/sub and Kafka binding reference docs.
  • Documented new tunables producerRequiredAcks and producerRetryMax, including accepted values/defaults.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
daprdocs/content/en/reference/components-reference/supported-pubsub/setup-apache-kafka.md Adds new Kafka client timeout and producer tuning fields to the pub/sub metadata table.
daprdocs/content/en/reference/components-reference/supported-bindings/kafka.md Adds the same fields to the Kafka binding metadata table, including binding direction support notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants