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.0b44.tar.gz (22.5 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.0b44-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen2-connector-1.0.0b44.tar.gz
  • Upload date:
  • Size: 22.5 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.0b44.tar.gz
Algorithm Hash digest
SHA256 6c53150ae29a7261bf19ce081609d21f64008845cd2a68a5d34732497224ca83
MD5 14247b932f3d2f5a5ffab35812a51ca0
BLAKE2b-256 056276ec0afc7e9096b0b511829f81053d02c9c8b2c60c0d05e8036c3adcd1d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen2_connector-1.0.0b44-py3-none-any.whl
  • Upload date:
  • Size: 24.8 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.0b44-py3-none-any.whl
Algorithm Hash digest
SHA256 fce149af5f8c4d3d6194975a4fc154af402544ea31440d193a5c8879cbf4be7e
MD5 7cf759e268fa3dfede570d9631638207
BLAKE2b-256 e651d436a2c19d1c4ae1fc775433eaafd7ece30176e8af91aaee07a501cf5f6a

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