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

Healthcheck timeout is too short in 0.4.3 leading to unhealthy status #96

Closed
mjustin opened this issue Oct 7, 2021 · 1 comment
Closed

Comments

@mjustin
Copy link

mjustin commented Oct 7, 2021

A number of healthcheck parameters were tuned in #94 to resolve #93. However, (on my machine with its current load, at least), the new timeout of 100ms is too short, leading to the status coming back as "unhealthy".

It looks like this value should be increased. The Docker default of 30s works fine on my machine, as does 1s (if decreasing it is desirable). It seems to work all the way down to 130ms on my current machine, so it's currently almost fast enough…


docker-compose.yml workaround

I'm able to work around this issue by manually specifying the healthcheck timeout in my docker-compose.yml file:

version: '3'
services:
  oidc-server-mock:
    container_name: oidc-server-mock
    image: ghcr.io/soluto/oidc-server-mock:latest
    ports:
      - "4011:80"
    volumes:
      - .:/tmp/config:ro
    environment:
      CLIENTS_CONFIGURATION_PATH: /tmp/config/clients-config.json
    healthcheck:
      timeout: 30s
@andreas-mausch
Copy link

Thanks for the workaround!

@AleF83 AleF83 closed this as completed Jul 12, 2022
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

No branches or pull requests

3 participants