|
5 | 5 | "id": "8d4a42f6",
|
6 | 6 | "metadata": {},
|
7 | 7 | "source": [
|
8 |
| - "In this first notebook, we will go through the basics of using the SDK to:\n", |
| 8 | + "In this notebook, we will go through the basics of using the SDK to:\n", |
9 | 9 | " - Spin up a Ray cluster with our desired resources\n",
|
10 | 10 | " - View the status and specs of our Ray cluster\n",
|
11 | 11 | " - Take down the Ray cluster when finished"
|
|
45 | 45 | "id": "bc27f84c",
|
46 | 46 | "metadata": {},
|
47 | 47 | "source": [
|
48 |
| - "Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding AppWrapper).\n", |
| 48 | + "Here, we want to define our cluster by specifying the resources we require for our batch workload. Below, we define our cluster object (which generates a corresponding RayCluster).\n", |
49 | 49 | "\n",
|
50 | 50 | "NOTE: We must specify the `image` which will be used in our RayCluster, we recommend you bring your own image which suits your purposes. \n",
|
51 | 51 | "The example here is a community image."
|
|
58 | 58 | "metadata": {},
|
59 | 59 | "outputs": [],
|
60 | 60 | "source": [
|
61 |
| - "# Create and configure our cluster object (and appwrapper)\n", |
| 61 | + "# Create and configure our cluster object\n", |
| 62 | + "# The SDK will try to find the name of your default local queue based on the annotation \"kueue.x-k8s.io/default-queue\": \"true\" unless you specify the local queue manually below\n", |
62 | 63 | "cluster = Cluster(ClusterConfiguration(\n",
|
63 | 64 | " name='raytest',\n",
|
64 |
| - " namespace='default',\n", |
| 65 | + " namespace='default', # Update to your namespace\n", |
65 | 66 | " num_workers=2,\n",
|
66 | 67 | " min_cpus=1,\n",
|
67 | 68 | " max_cpus=1,\n",
|
68 | 69 | " min_memory=4,\n",
|
69 | 70 | " max_memory=4,\n",
|
70 | 71 | " num_gpus=0,\n",
|
71 | 72 | " image=\"quay.io/project-codeflare/ray:latest-py39-cu118\",\n",
|
72 |
| - " instascale=False\n", |
| 73 | + " write_to_file=False, # When enabled Ray Cluster yaml files are written to /HOME/.codeflare/resources \n", |
| 74 | + " # local_queue=\"local-queue-name\" # Specify the local queue manually\n", |
73 | 75 | "))"
|
74 | 76 | ]
|
75 | 77 | },
|
|
78 | 80 | "id": "12eef53c",
|
79 | 81 | "metadata": {},
|
80 | 82 | "source": [
|
81 |
| - "Next, we want to bring our cluster up, so we call the `up()` function below to submit our cluster AppWrapper yaml onto the MCAD queue, and begin the process of obtaining our resource cluster." |
| 83 | + "Next, we want to bring our cluster up, so we call the `up()` function below to submit our Ray Cluster onto the queue, and begin the process of obtaining our resource cluster." |
82 | 84 | ]
|
83 | 85 | },
|
84 | 86 | {
|
|
0 commit comments