jieguangzhou commented on issue #13794:
URL: 
https://github.com/apache/dolphinscheduler/issues/13794#issuecomment-1484724083

   > @jieguangzhou Great! Looking forward to this feature.
   > 
   > Also I have a couple of questions:
   > 
   > 1. How to monitor the status of tasks after DS submits them to remote 
machine?
   > 2. How to stop / kill / restart ssh tasks?
   > 3. How to manage resource files of ssh tasks?
   > 
   > BTW, I see you label this feature with 4.0.0-alpha, why not 3.2.0?
   
   I want to use [Apache MINA SSHD](https://github.com/apache/mina-sshd) to run 
commands on the remote machine.
   1.  I plan to give a special identifier to the program when it runs, such as 
"dolphinscheduler-remoteshell". Later, to monitor the program, we just need to 
check if there are processes with this identifier (for example, using the 
command "ps -ef | grep dolphinscheduler-remoteshell-taskid"). Additionally, the 
program's logs will be stored in a specific path on the remote machine, and the 
task status will be monitored by combining the process status with the logs.
   2. For process management, we can use Mina-sshd to send the corresponding 
commands to the server, such as "kill -9".
   3. I haven't dealt with resource files yet because I assumed from the 
beginning that the program would be running on a remote server that already has 
all the required resources, such as environment, data, and resource files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to