Repository navigation
Alter how the new router metrics / health endpoint overrides stats - #14790
Conversation
|
@knobunc I don't see any PROXY test cases - I verified this manually in both modes, but it would be good to ensure we have some future tests in this direction. Might be enough to do:
|
|
Almost forgot, ROUTER_LISTEN_ADDR now overrides stats port (and docs mention that) |
reload-haproxy now checks and validates against the public backend. This change may affect some custom haproxy-config templates that also disable the stats port - otherwise this is net new behavior.
Adds a custom health checker that calls through to the default template health check (when stats port is -1), and allows that to be customized via the env var `ROUTER_METRICS_READY_HTTP_URL`. Use a valid check for both the proxy protocol and normal HTTP. A customizer who doesn't want to expose a public HTTP port should override the env var to point to their own stats port.
227605c to
778c6d4
Compare
knobunc
left a comment
There was a problem hiding this comment.
LGTM. I'll see about getting tests.
|
[test][testextended][extended: networking] |
|
Evaluated for origin test up to 778c6d4 |
|
Evaluated for origin testextended up to 778c6d4 |
|
continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/681/) (Base Commit: 7461c10) (PR Branch Commit: 778c6d4) (Extended Tests: networking) |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2481/) (Base Commit: 7461c10) (PR Branch Commit: 778c6d4) |
|
This has gotten all greens [severity:blocker][merge] |
|
Evaluated for origin merge up to 778c6d4 |
|
@jupierce this blocks starter |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/1101/) (Base Commit: 75c6d6e) (PR Branch Commit: 778c6d4) (Extended Tests: blocker) (Image: devenv-rhel7_6393) |
|
Any chance this caused #14871 ? every openshift-ansible pr is failing now but I imagine the fix is we need to update something there? |
|
Is it a different job? Will look, but didn't see any flakes on the tests
On Jun 25, 2017, at 8:42 PM, Scott Dodson <[email protected]> wrote:
Any chance this caused #14871
<#14871> ? every
openshift-ansible pr is failing now but I imagine the fix is we need to
update something there?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14790 (comment)>,
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p1jtFy4pQ0bWlOKJwN9qTk_cm5qEks5sHwxqgaJpZM4OAXgI>
.
|
When router metrics (new style) are on the stats port is completely disabled and replaced by a healthz endpoint in the openshift-router process. This moves in the direction of having more comprehensive health checking for the router (including the informer) in a backwards compatible fashion. Router templates that wish to preserve the stats port should do so, but will not be able to receive new style metrics.
Health checks are now PROXY aware and tied to the public HTTP port. A router template that has no public HTTP endpoint can still expose their own stats port as needed and customize ROUTER_METRICS_READY_HTTP_URL to point to it.
Fixes #14759
Should be part of 3.6.0 to avoid having to ship double port support.
[test]