[
https://issues.apache.org/jira/browse/FLINK-11914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16793176#comment-16793176
]
Shuyi Chen commented on FLINK-11914:
------------------------------------
[~gjy], thanks a lot for the quick reply. Yes, to kill the TM process on a
host, it would require sudo permission to do so. And we dont allow individual
job owners to have this privilege for security reason, as they might
accidentally kill other user's job colocating on the same host.
Also, exposing the API will allow our external monitoring service (called
watchdog) to monitor the TM health and programmatically disconnect it if it
experiences issues. I see the JobMasterGateway already has a
disconnectTaskManager() interface, so it wont be too much effort to add a REST
endpoint to expose the capability. What do you think?
> Expose a REST endpoint in JobManager to kill specific TaskManager
> -----------------------------------------------------------------
>
> Key: FLINK-11914
> URL: https://issues.apache.org/jira/browse/FLINK-11914
> Project: Flink
> Issue Type: New Feature
> Components: Runtime / REST
> Reporter: Shuyi Chen
> Assignee: Shuyi Chen
> Priority: Major
>
> we want to add capability in the Flink web UI to kill each individual TM by
> clicking a button, this would require first exposing the capability from the
> REST API endpoint. The reason is that some TM might be running on a heavily
> loaded YARN host over time, and we want to kill just that TM and have flink
> JM to reallocate a TM to restart the job graph. The other approach would be
> restart the entire YARN job and this is heavy-weight.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)