Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ssl timeout errors for Quix applications #254

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

daniil-quix
Copy link
Collaborator

@daniil-quix daniil-quix commented Nov 27, 2023

Problem

Applications created via Application.Quix() log timeout errors after becoming idle for some time.

Example:

[ERROR] : FAIL [rdkafka#producer-2] [thrd:sasl_ssl://<ip_address>]: sasl_ssl://<ip_address>: Receive failed: SSL transport error: Operation timed out (after 334853ms in state UP)

Looks like it's a known issue - confluentinc/librdkafka#3109.

Solution

Set default values for connections.max.idle.ms and metadata.max.age.ms to 3min.
It makes librdkafka close idle connections before the LB does it and updates broker metadata more often.

These values are set by QuixKafkaConfigsBuilder and only for the Quix apps.
They can be overwritten by passing extra_consumer_config and extra_producer_config to Application.Quix.

@daniil-quix daniil-quix merged commit d4e814f into release/v2.1.2a Nov 27, 2023
4 checks passed
@daniil-quix daniil-quix deleted the fix/quix-kafka-timeouts branch November 27, 2023 16:42
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