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() from BasePea, there is no need to override/implement close() method. Lifecycle is handled by BasePea.

setup()[source]

Setup the ssh communication to host.

run_forever()[source]

Method to block the main thread and print logs.

teardown()[source]

Close the ssh communication.