Skip to main content

Sorna Manager

Project description

Package Structure

  • sorna

  • manager: instance registry manager and an old ZMQ-based interface (to be deprecated)

  • gateway: RESTful API gateway based on aiohttp

Installation

Sorna Manager 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-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
python setup.py develop

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

Running the legacy server from a command line:

python -m sorna.manager.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)

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-manager-0.9.4.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

sorna_manager-0.9.4-py36-none-any.whl (39.1 kB view details)

Uploaded Python 3.6

File details

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

File metadata

File hashes

Hashes for sorna-manager-0.9.4.tar.gz
Algorithm Hash digest
SHA256 40b8a0248c6b8f1289a3e5bfd8f77ea87f47c4729dd9a186f40afea5363e6dde
MD5 81d22626c48f34f4ec95b8232eacd0e3
BLAKE2b-256 496f2dbef931a345f7bbe4f60224abe20434450888c9377416ea42166d2424a4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sorna_manager-0.9.4-py36-none-any.whl
Algorithm Hash digest
SHA256 33e86eeeb46011939e9b4469f9e53751f71724d252017a208d7174265e4b038d
MD5 9667bb6e87d4a9ff69144a21dc80bf59
BLAKE2b-256 8c559deb06cb482bd0b3b1a8b04d3deec1eb35ccded2489b674a3d2c4eabb4a6

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