Creating a Remote Jina Pod from Console with jinad¶
In the simplest case, you may want to create a Pod on the remote. The most naive way is to log into the remote machine and start a pod using
jina CLI. To avoid logging into the remote machine every time, we can use
jinad to do the same thing. Furthermore,
jinad offers a session management for the running Pods on the remote and saves you from manually creating and deleting Pods.
Here we start a simple Pod with the default configuration
_logforward. The Pod forwards received messages and print the messages out in the logs. On the local, you can run the following command to start a remote pod.
jina pod --uses _logforward --host 18.104.22.168 --port-expose 8000
▶️ /Users/nanwang/.pyenv/versions/3.7.5/bin/jina pod --uses _logforward --host 22.214.171.124 --port-expose 8000 ... [email protected][S]:created remote pod with id dcb5046e-554a-11eb-86b2-0ab9db700358 [email protected][S]:ready and listening [email protected][I]:🌏 Fetching streamed logs from remote id: dcb5046e-554a-11eb-86b2-0ab9db700358 🌏 [email protected][I]:input tcp://0.0.0.0:55223 (PULL_BIND) output tcp://0.0.0.0:55535 (PUSH_BIND) control over tcp://0.0.0.0:49993 (PAIR_BIND) 🌏 [email protected][I]:ready and listening
Note: The logs starting with 🌏 are fetched from the remote Pod. Now we have already the Pod running remotely and we can check the connectivity.
jina ping 126.96.36.199 49993