Kafka需要大约30分钟才能消费新消息

时间:2017-08-15 13:16:44

标签: java apache-kafka kafka-consumer-api

运行一个消费者,三个经纪人,一个生产者。将消息生成到kafka时遇到问题,但生产和消费者之间有大约35分钟的延迟可以摄取消息。具体而言,尽管可能并非仅在kafka消耗了消息时才会看到,消费者继续运行,然后产生更多消息。

不确定代理/生产者配置,但可以查询带有问题的系统管理员

Consumer config:

 metric.reporters = []
    metadata.max.age.ms = 15000
    partition.assignment.strategy =org.apache.kafka.clients.consumer.RangeAssignor]
    reconnect.backoff.ms = 50
    sasl.kerberos.ticket.renew.window.factor = 0.8
    max.partition.fetch.bytes = 1048576
    bootstrap.servers = [myip]
    ssl.keystore.type = JKS
    enable.auto.commit = false
    sasl.mechanism = GSSAPI
    interceptor.classes = null
    exclude.internal.topics = true
    ssl.truststore.password = null
    client.id =
    ssl.endpoint.identification.algorithm = null
    max.poll.records = 10
    check.crcs = true
    request.timeout.ms = 360000
    heartbeat.interval.ms = 3000
    auto.commit.interval.ms = 5000
    receive.buffer.bytes = 65536
    ssl.truststore.type = JKS
    ssl.truststore.location = null
    ssl.keystore.password = null
    fetch.min.bytes = 1
    send.buffer.bytes = 131072
    value.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
    group.id = hitsconsumer
    retry.backoff.ms = 100
    sasl.kerberos.kinit.cmd = /usr/bin/kinit
    sasl.kerberos.service.name = null
    sasl.kerberos.ticket.renew.jitter = 0.05
    ssl.trustmanager.algorithm = PKIX
    ssl.key.password = null
    fetch.max.wait.ms = 500
    sasl.kerberos.min.time.before.relogin = 60000
    connections.max.idle.ms = 540000
    session.timeout.ms = 300000
    metrics.num.samples = 2
    key.deserializer = class org.apache.kafka.common.serialization.StringDeserializer
    ssl.protocol = TLS
    ssl.provider = null
    ssl.enabled.protocols = [TLSv1.2, TLSv1.1, TLSv1]
    ssl.keystore.location = null
    ssl.cipher.suites = null
    security.protocol = PLAINTEXT
    ssl.keymanager.algorithm = SunX509
    metrics.sample.window.ms = 30000
    auto.offset.reset = earliest

0 个答案:

没有答案