Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28594

Improve Kafka DNS resolution on non static IP

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10
    • Fix Version/s: HOTFIX_10.10, 11.x
    • Component/s: Streams

      Description

      It is common to have:

      • broker with a dynamic IP -> we should not cache the DNS lookup
      • broker name that resolves with multiple IPs -> in case of failure we should try the next IP

      Confluent recommends the following configuration:

      At java level:

      java.security.Security.setProperty(“networkaddress.cache.ttl” , “30");
      java.security.Security.setProperty(“networkaddress.cache.negative.ttl” , “0"); 

      At Kafka consumer and producer level with:

      consumer.client.dns.lookup="use_all_dns_ips"
      producer.client.dns.lookup="use_all_dns_ips"

       

      The java configuration will be global and it changes the dns cache from infinite to 30s which should be ok.

        Attachments

          Activity

            People

            • Assignee:
              bdelbosc Benoit Delbosc
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.