a0x8o / kafka

A high-throughput, distributed, publish-subscribe messaging system
Apache License 2.0
66 stars 172 forks source link

ClientUtils loops without a pause between eating CPU #9

Open thorleifjacobsen opened 4 years ago

thorleifjacobsen commented 4 years ago

I'm not sure if this is a error of the implementation of KafkaAppender og in kafka itself or just a misconfiguration. But when we try to run KafkaAppender by com.github.danielwegener.logback.kafka.KafkaAppender then it initalizes with a error:

Couldn't resolve server {} from {} as DNS resolution of the canonical hostname {} failed for {}

This one loops about 200-300 times a second {} is replaced with a hostname of course. Is there a setting to make it wait a second between each reconnect or is this an issue for Daniel Wegener's implementation?