JM & TM readiness probe

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JM & TM readiness probe

Alexey Trenikhun
Hello,

How can I define rediness fork8s job cluster deployments? I think for job manager, I can use REST API and check job status, but what about task manager? Is anyway to ask task manager Pod is it ready or not?

Thanks,
Alexey
Reply | Threaded
Open this post in threaded view
|

Re: JM & TM readiness probe

Andrey Zagrebin-5
Hi Alexey,

As far as I know, TaskManager does not expose the REST API. ResourceManager redirects some REST calls to TaskManager [1]:
/taskmanagers/:taskmanagerid/metrics
/taskmanagers/:taskmanagerid/thread-dump
These calls may be not so lightweight. I do not know others or how you ask e.g. the state of TaskManager, it is all only over internal communication (currently akka).
Maybe Chesnay has a better idea.

We also use TCP port 6122 as TaskManager livenessProbe [2]. This might not qualify as a readiness probe though.

Best,
Andrey


On Wed, Aug 12, 2020 at 4:50 AM Alexey Trenikhun <[hidden email]> wrote:
Hello,

How can I define rediness fork8s job cluster deployments? I think for job manager, I can use REST API and check job status, but what about task manager? Is anyway to ask task manager Pod is it ready or not?

Thanks,
Alexey