Hello.

I’ve setup a load balancer with my Kubernetes service with type: LoadBalancer. I noticed that health check requests came in at a really fast pace (2 requests per second). I got curious and checked the interval and it was set to 5 and the unit indicated on the UI says (s) which I assumed it means seconds.

I play around with the settings and found out that if I set the value to 50 instead of 5 then health check requests came in at every 5 seconds. Is there a misconfiguration or the unit label should be changed to (0.1s)?

Could you also clarify on other settings as well?

Thanks.

1 comment
  • Here are the logs from the service:

    Interval = 5

     2020-04-18T02:17:30.180225124Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:30 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535179 "ping@internal" "-" 0ms
     2020-04-18T02:17:30.869726681Z traefik 10.104.0.6 - - [18/Apr/2020:02:17:30 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535180 "ping@internal" "-" 0ms
     2020-04-18T02:17:31.021155815Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:31 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535181 "ping@internal" "-" 0ms
     2020-04-18T02:17:31.711182417Z traefik 10.104.0.6 - - [18/Apr/2020:02:17:31 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535182 "ping@internal" "-" 0ms
     2020-04-18T02:17:31.843212668Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:31 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535183 "ping@internal" "-" 0ms
     2020-04-18T02:17:32.533241017Z traefik 10.104.0.6 - - [18/Apr/2020:02:17:32 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535184 "ping@internal" "-" 0ms
     2020-04-18T02:17:32.687114801Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:32 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535185 "ping@internal" "-" 0ms
     2020-04-18T02:17:33.375127643Z traefik 10.104.0.6 - - [18/Apr/2020:02:17:33 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535186 "ping@internal" "-" 0ms
     2020-04-18T02:17:33.509653293Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:33 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535187 "ping@internal" "-" 0ms
     2020-04-18T02:17:34.207406544Z traefik 10.104.0.6 - - [18/Apr/2020:02:17:34 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535188 "ping@internal" "-" 0ms
     2020-04-18T02:17:34.351840239Z traefik 10.104.0.5 - - [18/Apr/2020:02:17:34 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535189 "ping@internal" "-" 0ms
    

    Interval = 50

     2020-04-18T02:13:56.060895898Z traefik 10.104.0.6 - - [18/Apr/2020:02:13:56 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535015 "ping@internal" "-" 0ms
     2020-04-18T02:13:57.050753482Z traefik 10.104.0.5 - - [18/Apr/2020:02:13:57 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535016 "ping@internal" "-" 0ms
     2020-04-18T02:14:01.057156903Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:01 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535018 "ping@internal" "-" 0ms
     2020-04-18T02:14:02.046012151Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:02 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535019 "ping@internal" "-" 0ms
     2020-04-18T02:14:06.067663256Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:06 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535021 "ping@internal" "-" 0ms
     2020-04-18T02:14:07.057695806Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:07 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535022 "ping@internal" "-" 0ms
     2020-04-18T02:14:11.055196259Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:11 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535024 "ping@internal" "-" 0ms
     2020-04-18T02:14:12.047386706Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:12 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535025 "ping@internal" "-" 0ms
     2020-04-18T02:14:16.063991496Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:16 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535027 "ping@internal" "-" 0ms
     2020-04-18T02:14:17.058695585Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:17 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535028 "ping@internal" "-" 0ms
     2020-04-18T02:14:21.060808312Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:21 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535030 "ping@internal" "-" 0ms
     2020-04-18T02:14:22.047507157Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:22 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535031 "ping@internal" "-" 0ms
     2020-04-18T02:14:26.067393022Z traefik 10.104.0.6 - - [18/Apr/2020:02:14:26 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535033 "ping@internal" "-" 0ms
     2020-04-18T02:14:27.056858038Z traefik 10.104.0.5 - - [18/Apr/2020:02:14:27 +0000] "GET /ping HTTP/1.0" 200 2 "-" "-" 1535034 "ping@internal" "-" 0ms
    
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!