Skip to main content

Ray gen2 node provider

Project description

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

  1. Install Ray release 1.4.1 using pip install ray[default]==1.4.1

  2. Install gen2-connector on your machine

pip install gen2-connector
  1. Configure ibm vpc

  2. Create cluster config file

    • Use interactive vpc-config tool to generate cluster.yaml configuration file
    vpc-config --iam-api-key ${IAM_API_KEY} --format ray --filename cluster.yaml
    
    • Select security group from previous step when prompted

    • The output of the vpc-config is a cluster config yaml file, e.g

    =================================================
    Cluster config file: /tmp/tmpkf0dztfk.yaml
    =================================================
    
    • Alternatively, update cluster config manually based on defaults.yaml
  3. Use generated file to bring ray cluster up, e.g

ray up /tmp/tmpkf0dztfk.yaml

  • After finished, find cluster head node and worker nodes ips:
ray get-head-ip /tmp/tmpkf0dztfk.yaml
ray get-worker-ips /tmp/tmpkf0dztfk.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 /tmp/tmpkf0dztfk.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.0b36.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gen2_connector-1.0.0b36-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file gen2-connector-1.0.0b36.tar.gz.

File metadata

  • Download URL: gen2-connector-1.0.0b36.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for gen2-connector-1.0.0b36.tar.gz
Algorithm Hash digest
SHA256 70aeb99ac8c5c967f52857a8e805c2fbde96a7e5feba63ff6b581672c7acd774
MD5 87fca1706b4e08c31f5884c986e5a794
BLAKE2b-256 24bfb57f78ca1ae211adaf2996984ff417832bc66161e00ba284b1fe023582b2

See more details on using hashes here.

File details

Details for the file gen2_connector-1.0.0b36-py3-none-any.whl.

File metadata

  • Download URL: gen2_connector-1.0.0b36-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for gen2_connector-1.0.0b36-py3-none-any.whl
Algorithm Hash digest
SHA256 0f9e681c8842128ad37281a851fd65bdb05467e0663f9096cf6a428b49dc91a1
MD5 c0bb05bb906536bb3819be64412b7108
BLAKE2b-256 a8bd0054c368fc4e71754e1c8a42c55f9993c9282a8daa507c804c4fcce0b224

See more details on using hashes here.

Supported by

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