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

Issues/93 curl healthcheck #94

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Issues/93 curl healthcheck #94

merged 2 commits into from
Sep 11, 2023

Conversation

hhund
Copy link
Member

@hhund hhund commented Sep 10, 2023

  • Adds exception message to /status output
  • Removes exception stack trace from console log
  • Adds curl to the FHIR and BPE docker images
  • Switches docker healthcheck client from Java StatusClient to curl

Example docker healthcheck output via docker inspect --format "{{json .State.Health }}" <container-name> | jq:

{
  "Status": "unhealthy",
  "FailingStreak": 2,
  "Log": [
    {
      "Start": "2023-09-10T17:44:00.837510545Z",
      "End": "2023-09-10T17:44:00.93886766Z",
      "ExitCode": 0,
      "Output": ""
    },
    {
      "Start": "2023-09-10T17:44:10.948604802Z",
      "End": "2023-09-10T17:44:11.078651085Z",
      "ExitCode": 0,
      "Output": ""
    },
    {
      "Start": "2023-09-10T17:44:21.08525279Z",
      "End": "2023-09-10T17:44:21.167959785Z",
      "ExitCode": 0,
      "Output": ""
    },
    {
      "Start": "2023-09-10T17:44:31.174856623Z",
      "End": "2023-09-10T17:44:31.307281157Z",
      "ExitCode": 1,
      "Output": "PSQLException: The connection attempt failed. -> UnknownHostException: db"
    },
    {
      "Start": "2023-09-10T17:44:41.314813895Z",
      "End": "2023-09-10T17:44:41.415824061Z",
      "ExitCode": 1,
      "Output": "PSQLException: The connection attempt failed. -> UnknownHostException: db"
    }
  ]
}

closes #93

@hhund hhund added this to the 1.2.0 milestone Sep 10, 2023
@hhund hhund requested review from schwzr and wetret September 10, 2023 17:48
@hhund hhund self-assigned this Sep 10, 2023
@hhund hhund linked an issue Sep 10, 2023 that may be closed by this pull request
@hhund hhund removed the request for review from schwzr September 11, 2023 10:56
@hhund hhund merged commit 764e9c2 into develop Sep 11, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Java StatusClient With curl
2 participants