Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

DNS resolution libc works, resolvers does not

$
0
0

Using version 2.6.18

I am updating a working haproxy configuration to be able to handle backend servers not being up yet at the time haproxy is starting. It’s a docker container running in kubernetes, so the resolve.conf file is kubernetes generated, if that’s relevant.

Following all the documentation, I’ve updated to use init-addr none and added a resolver with parse-resolve-conf and added healthchecks, however, I get 503’s.

I was under the impression libc and a resolver with parse-resolve-conf would both be using the local resolver, why might I be getting different results?

Here’s a sanitized version of the config I’m using:

global
  log                stdout       local0        warning
  maxconn            5000
  spread-checks      5

resolvers dns
 parse-resolv-conf
 accepted_payload_size 8192

defaults
  mode               http
  log                global
  option             forwardfor except 127.0.0.1/8
  option             abortonclose
  retries            1
  timeout            client 10m
  timeout            server 10m
  timeout            connect 4s
  timeout            http-keep-alive 20s
  default-server     check inter 30s slowstart 10s rise 1 fall 60 maxconn 500 weight 100 resolvers dns init-addr none

...(omitting front end config)

backend egbackend
 server egbackend egbackend-dev-<redacted>.<redacted>.svc:8081

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>