Skip to content

Health check not running for ON_DEMAND task #1964

Description

@bmerry

I've just started experimenting with Singularity, so apologies if I've just misunderstood how it all works.

I've created a deploy for an ON_DEMAND request with the following health check fields:

"deployHealthTimeoutSeconds": 60,
"healthcheckUri": "/health",
"healthcheckPortIndex": 1,
"healthcheckMaxTotalTimeoutSeconds": 60,

After creating a run I can see the task in the UI, where the health check section says

Beginning when Task enters running, wait a max of 45s for app to start responding, then hit /health with a 5 second timeout every 5 second(s) until: HTTP 200 is recieved

followed by a dashed box with the text "No healthchecks". The HTTP access logs for the task don't show any hits on the /health endpoint. When querying /api/tasks/ids/request/REQUEST_NAME the task shows up in notYetHealthy. After 10 minutes it's killed with the message "OVERDUE_NEW_TASK - Task did not become healthy after 10:00.000".

If I click on the "/health" link in the UI it shows a correct health page, which gives me some confidence that I've got the port mapping set up right.

I'm using a local docker-compose setup for testing, with the following images:

  • hubspot/singularityservice:0.22.0
  • mesosphere/mesos-slave:1.5.0
  • mesosphere/mesos-master:1.5.0
  • netflixoss/exhibitor:1.5.2 (for Zookeeper)

I'm using the Docker containerizer with BRIDGE networking and not using the Singularity executor, in case that makes a difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions