jina.peapods.runtimes.ssh¶
-
class
jina.peapods.runtimes.ssh.
SSHRuntime
(args)[source]¶ Bases:
jina.peapods.runtimes.zmq.base.ZMQManyRuntime
Simple SSH based SSHRuntime for remote Pea management .. note:
It requires one to upload host public key to the remote 1. ssh-keygen -b 4096 2. scp ~/.ssh/id_rsa.pub username@hostname:~/.ssh/authorized_keys
Note
As the terminal signal is sent via
send_terminate_signal()
fromBasePea
, there is no need to override/implementclose()
method. Lifecycle is handled byBasePea
.