Remote Executors and Flows via JinaD

JinaD is a daemon) for deploying and managing Jina on remote via a RESTful interface. It allows users to create/update/delete Executors and Flows on remote hosts. It achieves isolation of deployments by defining a workspace for each Jina object, hence allowing a multi-tenant setup with parallel Flows on the same host.

Minimum working example

Remote (1.2.3.4)

  1. # have docker installed
  2. docker run --add-host host.docker.internal:host-gateway \
  3. -v /var/run/docker.sock:/var/run/docker.sock \
  4. -v /tmp/jinad:/tmp/jinad \
  5. -p 8000:8000 \
  6. --name jinad \
  7. -d jinaai/jina:master-daemon

Local

  1. from jina import Flow
  2. f = (Flow()
  3. .add(uses='mwu_encoder.yml',
  4. host='1.2.3.4:8000',
  5. upload_files=['mwu_encoder.py']))
  6. with f:
  7. ...