Giter Club home page Giter Club logo

ray-odh-demo's Introduction

ray-odh-demo

Prototype an integration of ray with Open Data Hub on OpenShift, using a singleuser profile to provision a ray cluster.

Demo Directions

Prerequisites - This demo assumes:

  1. You have a project namespace in OpenShift to use for your demo, and that you have admin privileges on the cluster to install the Open Data Hub operator, add rolebindings define CRDs, etc.
  2. You have installed the Open Data Hub community operator from the Operator Catalog.
  3. You have created a deployment of the ODH operator into your demo namespace. The only ODH component necessary for this demo is JupyterHub, but others may be installed if desired.

Installing the Ray operator

This demo makes use of the Ray operator. To install the operator, install the following in your demo:

  1. Go to your demo namespace: oc project <your-project-namespace>
  2. Install the CRD for a ray cluster: oc apply -f deploy/operator/ray-cluster-crd.yaml
  3. Run the operator pod: oc apply -f deploy/operator/ray-operator.yaml
  4. You should now see the ray operator running in pod ray-operator-pod
  5. You may optionally test that the operator is working by creating a CR and ensuring it spins a ray cluster: oc apply -f deploy/operator/ray-test-cluster-cr.yaml

To install and run this demo:

This demo makes use of a role-binding to the role ray-operator-role defined for the ray operator during the instructions above.

  1. Run oc apply -f on all the .yaml files in the deploy/odh directory.
  2. Wait a few minutes and log into the JupyterHub launcher via Routes. You should see a new notebook image option ray-minimal-notebook:demo: choose this. If the ray notebook is still not visible, you will need to restart the jupyterhub-xxxx pod so that it reads the new profile you just installed. Simply deleting this pod will cause it to be restarted automatically.
  3. Launch your JupyterHub environment. As part of the startup process, the ODH JupyterHub launcher should also start up a Ray cluster.
  4. Add the git repo https://github.com/erikerlandson/ray-odh-demo.git by clicking on "Git Clone" button on top left of Jupyter and pasting the link to repo.
  5. In Jupyter, navigate to directory ray-odh-demo.git/source and open the demo notebook.
  6. Run the notebook to confirm that it connects to your ray cluster and operates correctly.
  7. You could also see the head and worker nodes created under pods as ray-cluster-$USER-ray-cluster-$USER-head-xxxxx and ray-cluster-$USER-ray-cluster-$USER-worker-xxxxx pods

ray-odh-demo's People

Contributors

erikerlandson avatar heyselbi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ray-odh-demo's Issues

Documentation

Hi,

Looking at the project, it appears that this is to get Ray working on OpenShift. Could you provide more info and how I can try this out?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.