Skip to main content

Ray gen2 node provider

Project description

Gen2-connector enables Ray cluster to be deployed over IBM Gen2 infrastructure

Use of python virtual environment, e.g. virtualenv is greatly encouraged, to avoid installing Python packages globally which could break system tools or other projects

  1. Install gen2-connector on your machine
pip install gen2-connector
  1. Configure ibm vpc

  2. Create cluster config file

    • Use interactive ibm-ray-config config tool to generate cluster.yaml configuration file
    pip install ibm-ray-config
    ibm-ray-config -o cluster.yaml
    
  3. Use generated file to bring ray cluster up, e.g

ray up cluster.yaml

  • After finished, find cluster head node and worker nodes ips:
ray get-head-ip cluster.yaml
ray get-worker-ips cluster.yaml
  • To get status of the cluster
ray status --address PUBLIC_HEAD_IP:6379
  • Use browser to open ray dashboard on PUBLIC_HEAD_IP:8265. Alternatively use ray dashboard to forward ray cluster dashboard to your localhost.

  • Submit example task ray submit cluster.yaml templates/example.py

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

gen2-connector-1.0.0b67.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

gen2_connector-1.0.0b67-py3-none-any.whl (18.3 kB view hashes)

Uploaded Python 3

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