Skip to main content

Package Structure

  • sorna

  • manager: Abstraction of agents and computation kernels

  • gateway: RESTful API gateway based on aiohttp

Installation

Sorna Manager requires Python 3.6 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-manager

For development:

We recommend to use virtual environments in Python. You may share a virtual environment with other Sorna projects.

$ git clone https://github.com/lablup/sorna-manager.git
$ python -m venv venv-sorna
$ source venv-sorna/bin/activate
$ pip install -U pip setuptools  # ensure latest versions!
$ pip install -r requirements-dev.txt

Running and Deployment

Prepare databases.

  • An RDBMS (PostgreSQL)

  • A Redis server

  • Sorna Manager uses the following database IDs

    • 1: to track status and availability of kernel sessions

    • 2: to track status and availability of instances (agents)

    • 3: to track session IDs

    • These IDs are defined in sorna-common

Configuration

You need to specify configuration parameters using either CLI arguments or environment variables. The default values are for development settings so you should set most of them explicitly in production. For details about arguments and their equivalent environment variable names, run the server module with --help.

Running the API gateway server from a command line:

$ python -m sorna.gateway.server

Example supervisord config:

[program:sorna-manager]
stopsignal = TERM
stopasgroup = true
command = /home/sorna/run-manager.sh

TCP Port numbers to open

  • 5001 (for legacy ZeroMQ-based interface)

  • 8080 / 8443 (for local development)

  • 80 / 443 (for HTTP/HTTPS API requests in production)

Metadata

Release files for sorna-manager 0.9.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sorna-manager 0.9.11
File Size Uploaded
sorna-manager-0.9.11.tar.gz 30.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sorna-manager 0.9.11
File Interpreter ABI Platform
sorna_manager-0.9.11-py36-none-any.whl Python 3.6 none any Details

Total release size: 70.5 kB

Release files / sorna-manager-0.9.11.tar.gz

Download URL sorna-manager-0.9.11.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a7824701226e9792590d4e736f3df4b1a6d517df09611046956d3003dc55ff3e
BLAKE2b-256 checksum
How to use checksums
ce73fed9fcd1b4ae7ad19c2f9451f7b0e3198997f091ea9068898192fd3e6df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sorna_manager-0.9.11-py36-none-any.whl

Download URL sorna_manager-0.9.11-py36-none-any.whl
Size 40.1 kB
Tags Python 3.6
SHA-256 checksum
How to use checksums
5326f9e2e54e4d09cc4b20f3354f1a3fd010715a172a140ae8fb62612cc642b8
BLAKE2b-256 checksum
How to use checksums
93de9e38d82618b8f93d6ff4be79a50c4af664b907c24a53f9209421a40f24a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.11 This release

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page