Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kafka_group not working with kafka > 2.1 #315

Copy link
Copy link
@splushii

Description

@splushii
Issue body actions

Using the kafka_group consumer with a Kafka 2.3 cluster results in lost messages, duplicated messages and abnormally high load and low throughput. Using a Kafka 2.1 cluster works well. I am not sure of the reason but I suspect that the consumer offset change (introduced in Kafka 2.2) is not supported by ruby-kafka (due to the compatibility chart). But these are just speculations that made me try out Kafka 2.1, nothing I have confirmed.

The complete plugin config for reference:

    <source>
      @type kafka_group

      brokers              log-kafka-bootstrap.log.svc.cluster.local:9093
      consumer_group       fluentd
      topics               test
      format               json
      time_source          record
      time_format          "%iso8601"
      start_from_beginning false
      max_wait_time        5
      max_bytes            1048576

      username        "#{ENV['KAFKA_USERNAME']}"
      password        "#{ENV['KAFKA_PASSWORD']}"
      scram_mechanism sha512
      ssl_ca_cert     /etc/ssl/certs/kafka/ca.crt
    </source>

I am running multiple fluentd instances with the same config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.