I am using Marathon and Mesos. My applications are based on Scala and I am using SBT docker plugin to dockerize the application and to deploy to Marathon. The applications are asynchronous (Queue Based) and not invoked via HTTP. How do I perform healthcheck for Asynchronous applications and is it possible to leverage SBT Scalatest here. The application is dockerized, so how do we invoke Scalatest inside a dockerized app. Any thoughts ?
Asked
Active
Viewed 212 times
-2
-
Voting to close as off-topic, as it's basically asking for a tutorial, which is out-of-scope. Having said that, this might help you: https://skillsmatter.com/skillscasts/11183-integration-testing-using-sbt-scalatest-and-docker – kenny_k Dec 18 '17 at 12:03
-
Is it a one time run on Marathon or it's permanently running on Marathon? – Rico Dec 18 '17 at 22:27
-
It's permanently running on Marathon. One time run, i am executing via command "sbt docker". My configured Scalatest cases will run and image is created. The issue is after deploying to Marathon, how do i utilize marathon's health check feature on a Asynchronous application. – Kumar Dev Dec 19 '17 at 09:18
1 Answers
0
You can use Command HealthCheck and execute your custom command.
Think if you really need a health-check and what it will tell you. Avoid health checks that eat resources better expose an endpoint that will monitor thread pools, timeouts e.t.c. and returns unhealthy when something is really wrong. In other cases, you should configure your metrics to notify you that something bad happens.

janisz
- 6,292
- 4
- 37
- 70
-
1Thanks All. For now I have written a dummy health check HTTP service. – Kumar Dev Dec 29 '17 at 10:36