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.0b12.tar.gz (20.9 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.0b12-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen2-connector-1.0.0b12.tar.gz
  • Upload date:
  • Size: 20.9 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.0b12.tar.gz
Algorithm Hash digest
SHA256 32eeafa37643f55ede4cec8b68466f564612eebbe9c452a511ec703a6d0ba4e9
MD5 550108e311f54f6d36def2fc48db01e2
BLAKE2b-256 1a2ceda9b7970384471b22fa9d8bdea3b732ac47ba1eaf0beedae7a478637f51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen2_connector-1.0.0b12-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.0b12-py3-none-any.whl
Algorithm Hash digest
SHA256 de8e525d215212536869d0a70d35b395bfb178944b311f9376b900b7e7a0677b
MD5 f679256a357dce8f621140f6233e5a74
BLAKE2b-256 2f46ca21739a1f7732d08d50b4079d10f76bc548ce21567ed85953f14e0c8cd8

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