Skip to main content

Sorna agent

Project description

Package Structure

  • sorna

  • agent: The agent server implementation

Installation

Sorna Agent requires Python 3.5 or higher. We highly recommend to use pyenv for an isolated setup of custom Python versions that might be different from default installations managed by your OS or Linux distros.

pip install sorna-agent

Due to limitation in current version (9.0.1) of pip, you may encounter errors while installing aiodocker. In that case, run pip install -r requirements.txt and try again.

For development:

We recommend to use virtual environments in Python. You may share a virtual environment with other Sorna projects. This installs the current working copy and sorna-common as “editable” packages.

git clone https://github.com/lablup/sorna-agent.git
python -m venv venv-sorna
source venv-sorna/bin/activate
pip install -r dev-requirements.txt

Deployment

Running from a command line:

To handle uploads of generated files to AWS S3, you need to set several environment variables. If they are not set, the file upload feature is disabled. Currently we only support S3-based uploads.

export AWS_ACCESS_KEY_ID="..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_REGION="..."     # e.g., ap-northeast-2
export AWS_S3_BUCKET="..."  # e.g., my-precious-sorna
python -m sorna.agent.server --manager-addr tcp://localhost:5001 --max-kernels 15

For details about arguments, run the server with --help.

Example supervisord config:

[program:sorna-agent]
stopsignal = TERM
stopasgroup = true
command = /home/sorna/run-agent.sh
environment = AWS_ACCESS_KEY_ID="...",AWS_SECRET_ACCESS_KEy="...",AWS_REGION="...",AWS_S3_BUCKET="..."

TCP Port numbers to open:

  • 6001: ZeroMQ-based internal agent control protocol

  • Docker REPL containers will use automatically-mapped host-side port numbers, and they do not need to be open to other hosts (localhost-only). Inside containers, the REPL daemons use the fixed port number: 2001.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sorna-agent-0.9.4.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

sorna_agent-0.9.4-py36-none-any.whl (24.4 kB view details)

Uploaded Python 3.6

File details

Details for the file sorna-agent-0.9.4.tar.gz.

File metadata

  • Download URL: sorna-agent-0.9.4.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sorna-agent-0.9.4.tar.gz
Algorithm Hash digest
SHA256 771fc67d9a679e9dd8e214921e738ea1818974ad32e2e27392a1288e7cb379ae
MD5 d802099d6202ef6274b0ccc44df97ce2
BLAKE2b-256 d5d05aa08c3324906c216e065cb7024f4e786dbc81a2360a7156985415813f6e

See more details on using hashes here.

Provenance

File details

Details for the file sorna_agent-0.9.4-py36-none-any.whl.

File metadata

File hashes

Hashes for sorna_agent-0.9.4-py36-none-any.whl
Algorithm Hash digest
SHA256 ca836de94842a4260fd3de9fe8bcc4b3856b8183b1bd74d718789aa3b521adde
MD5 e6c16c50026ff938e0727fa5e17f33d5
BLAKE2b-256 69b5bacaef1804db1d6be76f0036416aaba77d9453728eda03845a874a85133a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page