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

How is the Docker registry health check conducted? #3059

Open
rgaiacs opened this issue Aug 7, 2024 · 2 comments
Open

How is the Docker registry health check conducted? #3059

rgaiacs opened this issue Aug 7, 2024 · 2 comments
Assignees

Comments

@rgaiacs
Copy link
Collaborator

rgaiacs commented Aug 7, 2024

On Friday, 02 August 2024, @arnim noticed that GESIS server was having problems with the Docker registry.

curl https://mybinder.org/health | python3 -m json.tool
{
    "ok": true,
    "checks": [
        {
            "service": "Docker registry",
            "ok": false
        },
        {
            "service": "JupyterHub API",
            "ok": true
        },
        {
            "service": "Pod quota",
            "total_pods": 5,
            "build_pods": 2,
            "user_pods": 3,
            "quota": 250,
            "ok": true,
            "_ignore_failure": true
        }
    ]
}

Knowing how the docker registry health check is conducted will help me to inspect it.

Thanks for the help.

@rgaiacs rgaiacs self-assigned this Aug 7, 2024
@manics
Copy link
Member

manics commented Aug 7, 2024

It's very basic, it just checks a connection is possible:
https://github.com/jupyterhub/binderhub/blob/a8a2e197d5ebbed78f1ee5ee3a40547dc8e0f7eb/binderhub/health.py#L150-L159

We could potentially have a more complex check, though it might end up being specific to the registry implementation

@manics
Copy link
Member

manics commented Aug 7, 2024

We're already calling a Registry class method in the health check

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

2 participants