Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have proxy forward its health status to all downsteam stroom/proxy instances #4723

Open
at055612 opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement A new feature or enhancement to an existing feature f:proxy

Comments

@at055612
Copy link
Member

Have each proxy capture its dropwizard healthcheck json and combine that with its own identity information.
On receipt of this a proxy would append its own information to the end of the list and forward to its downstreams.
The terminal instance would then have a chain of health reports which could be used to visualise its network of proxies (as there may be multiple chains of them) and see the health of each one.

This capability should be configurable on each http forward destination.

The request would look something like:

[
  {
    "proxyId": "proxy-1234",
    "ipAddress": "200.123.123.1",
    "fqdn": "somehost.somedomain",
    "healthy": true,   // The overall health of the proxy combining each item in healthReport
    "timestamp" : "2025-01-24T10:53:43.812Z" // when the health report was checked
    "healthReport" : {
      "deadlocks" : {
        "healthy" : true,
        "duration" : 0,
        "timestamp" : "2025-01-24T10:53:43.812Z"
      },
      "stroom.dropwizard.common.LogLevelInspector" : {
        "healthy" : true,
        "duration" : 1,
        "levels" : {
          "ROOT" : "WARN",
          "io.dropwizard" : "INFO",
          "metrics" : "INFO",
          "org.eclipse.jetty" : "INFO",
          "org.flywaydb" : "INFO",
          "receive" : "INFO",
          "send" : "INFO",
          "stroom" : "INFO",
          "stroom.proxy.app.handler.ForwardHttpPostDestination" : "DEBUG"
        },
        "timestamp" : "2025-01-24T10:53:43.813Z"
      },
      "stroom.proxy.app.ContentSyncService" : {
        "healthy" : true,
        "duration" : 0,
        "upstreamUrls" : { },
        "timestamp" : "2025-01-24T10:53:43.812Z"
      },
      ...
    }
  }, 

  {
    "proxyId": "proxy-4567",
    "ipAddress": "100.456.456.1",
    "fqdn": "anotherhost.anotherdomain",
    "healthy": true,
    "timestamp" : "2025-01-24T10:53:43.812Z"
    "healthReport" : {
      "deadlocks" : {
        "healthy" : true,
        ...
]
@at055612 at055612 added enhancement A new feature or enhancement to an existing feature f:proxy labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or enhancement to an existing feature f:proxy
Projects
None yet
Development

No branches or pull requests

1 participant