Skip to content

Add healthcheck on serve #2041

@ieaves

Description

@ieaves

Feature request description

Add a health check when running ramalama serve.

Suggest potential solution

@rhatdan you might have a better idea as to how this could best be implemented but one route might be to add the healthcheck on serve here. There is already an implementation for is_healthy and wait_for_healthy which can be reused.

One optional extension might include switching from execvp in exec_cmd to popen to hold onto the parent process until we've confirmed the server came up alive.

Have you considered any alternatives?

No response

Additional context

This is a follow-on from the discussion in #1524.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions