Open jakolehm opened 7 years ago
Should we use the same interval for LB checks also?
Not sure.. but now LB health check spam logs pretty hard (if service logs each request).
yes, very hard:
2017-02-09T15:44:55.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:44:55 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:44:57.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:44:57 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:44:59.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:44:59 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:01.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:01 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:03.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:03 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:05.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:05 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:07.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:07 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:09.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:09 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:11.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:11 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:13.000Z [sentry.web-1]: 10.81.0.1 - - [09/Feb/2017:15:45:13 +0000] "GET /auth/login/sentry/ HTTP/1.1" 200 10904 "-" "Kontena-Agent/1.1.0"
2017-02-09T15:45:13.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:13 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:16.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:15 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:18.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:18 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
2017-02-09T15:45:20.000Z [sentry.web-1]: 10.81.128.62 - - [09/Feb/2017:15:45:20 +0000] "GET /auth/login/sentry/ HTTP/1.0" 200 10907 "-" "-"
IMO LB should do the checks more often than agent since it makes the balancing decisions based on the health.
sure, but how to supress that spam?
that's up to the application. one way is to use a query param ?health
and on the app side filter all those out from logs.
https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.2-inter