|
32 | 32 | }, |
33 | 33 | { |
34 | 34 | "cell_type": "code", |
35 | | - "execution_count": 2, |
| 35 | + "execution_count": null, |
36 | 36 | "id": "4364ac2e-dd10-4d30-ba66-12708daefb3f", |
37 | 37 | "metadata": { |
38 | 38 | "tags": [] |
39 | 39 | }, |
40 | | - "outputs": [ |
41 | | - { |
42 | | - "name": "stdout", |
43 | | - "output_type": "stream", |
44 | | - "text": [ |
45 | | - "Written to: hfgputest-1.yaml\n" |
46 | | - ] |
47 | | - } |
48 | | - ], |
| 40 | + "outputs": [], |
49 | 41 | "source": [ |
50 | 42 | "# Create our cluster and submit appwrapper\n", |
51 | 43 | "namespace = \"default\"\n", |
|
89 | 81 | ] |
90 | 82 | }, |
91 | 83 | { |
92 | | - "attachments": {}, |
93 | 84 | "cell_type": "markdown", |
94 | 85 | "id": "12eef53c", |
95 | 86 | "metadata": {}, |
|
99 | 90 | }, |
100 | 91 | { |
101 | 92 | "cell_type": "code", |
102 | | - "execution_count": 11, |
| 93 | + "execution_count": null, |
103 | 94 | "id": "cf1b749e-2335-42c2-b673-26768ec9895d", |
104 | 95 | "metadata": {}, |
105 | | - "outputs": [ |
106 | | - { |
107 | | - "name": "stdout", |
108 | | - "output_type": "stream", |
109 | | - "text": [ |
110 | | - "rayclient-hfgputest-1-default.apps.tedbig412.cp.fyre.ibm.com\n" |
111 | | - ] |
112 | | - } |
113 | | - ], |
| 96 | + "outputs": [], |
114 | 97 | "source": [ |
115 | | - "import openshift as oc\n", |
116 | 98 | "from codeflare_sdk.utils import generate_cert\n", |
117 | 99 | "\n", |
118 | 100 | "if local_interactive:\n", |
119 | 101 | " generate_cert.generate_tls_cert(cluster_name, namespace)\n", |
120 | | - " generate_cert.export_env(cluster_name, namespace)\n", |
121 | | - "\n", |
122 | | - "with oc.project(namespace):\n", |
123 | | - " routes=oc.selector(\"route\").objects()\n", |
124 | | - " rayclient_url=\"\"\n", |
125 | | - " for r in routes:\n", |
126 | | - " if \"rayclient\" in r.name():\n", |
127 | | - " rayclient_url=r.model.spec.host\n", |
128 | | - "print(rayclient_url)" |
| 102 | + " generate_cert.export_env(cluster_name, namespace)" |
129 | 103 | ] |
130 | 104 | }, |
131 | 105 | { |
132 | 106 | "cell_type": "code", |
133 | | - "execution_count": 12, |
| 107 | + "execution_count": 6, |
134 | 108 | "id": "9483bb98-33b3-4beb-9b15-163d7e76c1d7", |
135 | 109 | "metadata": { |
136 | 110 | "scrolled": true, |
|
141 | 115 | "name": "stderr", |
142 | 116 | "output_type": "stream", |
143 | 117 | "text": [ |
144 | | - "2023-05-31 14:12:37,816\tINFO client_builder.py:251 -- Passing the following kwargs to ray.init() on the server: logging_level\n", |
145 | | - "2023-05-31 14:12:37,820\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.IDLE\n", |
146 | | - "2023-05-31 14:12:38,034\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.CONNECTING\n", |
147 | | - "2023-05-31 14:12:38,246\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.READY\n", |
148 | | - "2023-05-31 14:12:38,290\tDEBUG worker.py:807 -- Pinging server.\n", |
149 | | - "2023-05-31 14:12:40,521\tDEBUG worker.py:640 -- Retaining 00ffffffffffffffffffffffffffffffffffffff0100000001000000\n", |
150 | | - "2023-05-31 14:12:40,523\tDEBUG worker.py:564 -- Scheduling task get_dashboard_url 0 b'\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x01\\x00\\x00\\x00\\x01\\x00\\x00\\x00'\n", |
151 | | - "2023-05-31 14:12:40,535\tDEBUG worker.py:640 -- Retaining c8ef45ccd0112571ffffffffffffffffffffffff0100000001000000\n", |
152 | | - "2023-05-31 14:12:41,379\tDEBUG worker.py:636 -- Releasing c8ef45ccd0112571ffffffffffffffffffffffff0100000001000000\n" |
| 118 | + "2023-06-27 19:14:16,088\tINFO client_builder.py:251 -- Passing the following kwargs to ray.init() on the server: logging_level\n", |
| 119 | + "2023-06-27 19:14:16,100\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.IDLE\n", |
| 120 | + "2023-06-27 19:14:16,308\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.CONNECTING\n", |
| 121 | + "2023-06-27 19:14:16,434\tDEBUG worker.py:378 -- client gRPC channel state change: ChannelConnectivity.READY\n", |
| 122 | + "2023-06-27 19:14:16,436\tDEBUG worker.py:807 -- Pinging server.\n", |
| 123 | + "2023-06-27 19:14:18,634\tDEBUG worker.py:640 -- Retaining 00ffffffffffffffffffffffffffffffffffffff0100000001000000\n", |
| 124 | + "2023-06-27 19:14:18,635\tDEBUG worker.py:564 -- Scheduling task get_dashboard_url 0 b'\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x01\\x00\\x00\\x00\\x01\\x00\\x00\\x00'\n", |
| 125 | + "2023-06-27 19:14:18,645\tDEBUG worker.py:640 -- Retaining c8ef45ccd0112571ffffffffffffffffffffffff0100000001000000\n", |
| 126 | + "2023-06-27 19:14:19,454\tDEBUG worker.py:636 -- Releasing c8ef45ccd0112571ffffffffffffffffffffffff0100000001000000\n" |
153 | 127 | ] |
154 | 128 | }, |
155 | 129 | { |
|
190 | 164 | " </tr>\n", |
191 | 165 | " <tr>\n", |
192 | 166 | " <td style=\"text-align: left\"><b>Dashboard:</b></td>\n", |
193 | | - " <td style=\"text-align: left\"><b><a href=\"http://10.254.12.141:8265\" target=\"_blank\">http://10.254.12.141:8265</a></b></td>\n", |
| 167 | + " <td style=\"text-align: left\"><b><a href=\"http://10.254.20.41:8265\" target=\"_blank\">http://10.254.20.41:8265</a></b></td>\n", |
194 | 168 | "</tr>\n", |
195 | 169 | "\n", |
196 | 170 | " </table>\n", |
197 | 171 | " </div>\n", |
198 | 172 | "</div>\n" |
199 | 173 | ], |
200 | 174 | "text/plain": [ |
201 | | - "ClientContext(dashboard_url='10.254.12.141:8265', python_version='3.8.13', ray_version='2.1.0', ray_commit='23f34d948dae8de9b168667ab27e6cf940b3ae85', protocol_version='2022-10-05', _num_clients=1, _context_to_restore=<ray.util.client._ClientContext object at 0x10e5d2bb0>)" |
| 175 | + "ClientContext(dashboard_url='10.254.20.41:8265', python_version='3.8.13', ray_version='2.1.0', ray_commit='23f34d948dae8de9b168667ab27e6cf940b3ae85', protocol_version='2022-10-05', _num_clients=1, _context_to_restore=<ray.util.client._ClientContext object at 0x108ca2730>)" |
202 | 176 | ] |
203 | 177 | }, |
204 | | - "execution_count": 12, |
| 178 | + "execution_count": 6, |
205 | 179 | "metadata": {}, |
206 | 180 | "output_type": "execute_result" |
207 | 181 | } |
|
210 | 184 | "import ray\n", |
211 | 185 | "\n", |
212 | 186 | "ray.shutdown()\n", |
213 | | - "ray.init(address=f\"ray://{rayclient_url}\", logging_level=\"DEBUG\")" |
| 187 | + "ray.init(address=cluster.local_client_url(), logging_level=\"DEBUG\")" |
214 | 188 | ] |
215 | 189 | }, |
216 | 190 | { |
217 | 191 | "cell_type": "code", |
218 | | - "execution_count": 13, |
| 192 | + "execution_count": 7, |
219 | 193 | "id": "3436eb4a-217c-4109-a3c3-309fda7e2442", |
220 | 194 | "metadata": {}, |
221 | 195 | "outputs": [], |
|
239 | 213 | }, |
240 | 214 | { |
241 | 215 | "cell_type": "code", |
242 | | - "execution_count": 14, |
| 216 | + "execution_count": 8, |
243 | 217 | "id": "5cca1874-2be3-4631-ae48-9adfa45e3af3", |
244 | 218 | "metadata": { |
245 | 219 | "scrolled": true, |
|
250 | 224 | "name": "stderr", |
251 | 225 | "output_type": "stream", |
252 | 226 | "text": [ |
253 | | - "2023-05-31 14:13:29,868\tDEBUG worker.py:640 -- Retaining 00ffffffffffffffffffffffffffffffffffffff0100000002000000\n", |
254 | | - "2023-05-31 14:13:29,870\tDEBUG worker.py:564 -- Scheduling task heavy_calculation 0 b'\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x01\\x00\\x00\\x00\\x02\\x00\\x00\\x00'\n" |
| 227 | + "2023-06-27 19:14:28,222\tDEBUG worker.py:640 -- Retaining 00ffffffffffffffffffffffffffffffffffffff0100000002000000\n", |
| 228 | + "2023-06-27 19:14:28,222\tDEBUG worker.py:564 -- Scheduling task heavy_calculation 0 b'\\x00\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\x01\\x00\\x00\\x00\\x02\\x00\\x00\\x00'\n" |
255 | 229 | ] |
256 | 230 | } |
257 | 231 | ], |
|
261 | 235 | }, |
262 | 236 | { |
263 | 237 | "cell_type": "code", |
264 | | - "execution_count": 15, |
| 238 | + "execution_count": 9, |
265 | 239 | "id": "01172c29-e8bf-41ef-8db5-eccb07906111", |
266 | 240 | "metadata": {}, |
267 | 241 | "outputs": [ |
268 | 242 | { |
269 | 243 | "name": "stderr", |
270 | 244 | "output_type": "stream", |
271 | 245 | "text": [ |
272 | | - "2023-05-31 14:13:32,643\tDEBUG worker.py:640 -- Retaining 16310a0f0a45af5cffffffffffffffffffffffff0100000001000000\n", |
273 | | - "2023-05-31 14:13:34,677\tDEBUG worker.py:439 -- Internal retry for get [ClientObjectRef(16310a0f0a45af5cffffffffffffffffffffffff0100000001000000)]\n" |
| 246 | + "2023-06-27 19:14:29,202\tDEBUG worker.py:640 -- Retaining 16310a0f0a45af5cffffffffffffffffffffffff0100000001000000\n", |
| 247 | + "2023-06-27 19:14:31,224\tDEBUG worker.py:439 -- Internal retry for get [ClientObjectRef(16310a0f0a45af5cffffffffffffffffffffffff0100000001000000)]\n" |
274 | 248 | ] |
275 | 249 | }, |
276 | 250 | { |
|
279 | 253 | "1789.4644387076714" |
280 | 254 | ] |
281 | 255 | }, |
282 | | - "execution_count": 15, |
| 256 | + "execution_count": 9, |
283 | 257 | "metadata": {}, |
284 | 258 | "output_type": "execute_result" |
285 | 259 | } |
|
290 | 264 | }, |
291 | 265 | { |
292 | 266 | "cell_type": "code", |
293 | | - "execution_count": 16, |
| 267 | + "execution_count": 10, |
294 | 268 | "id": "9e79b547-a457-4232-b77d-19147067b972", |
295 | 269 | "metadata": {}, |
296 | 270 | "outputs": [ |
297 | 271 | { |
298 | 272 | "name": "stderr", |
299 | 273 | "output_type": "stream", |
300 | 274 | "text": [ |
301 | | - "2023-05-31 14:13:37,659\tDEBUG dataclient.py:287 -- Got unawaited response connection_cleanup {\n", |
| 275 | + "2023-06-27 19:14:33,161\tDEBUG dataclient.py:287 -- Got unawaited response connection_cleanup {\n", |
302 | 276 | "}\n", |
303 | 277 | "\n", |
304 | | - "2023-05-31 14:13:38,681\tDEBUG dataclient.py:278 -- Shutting down data channel.\n" |
| 278 | + "2023-06-27 19:14:34,460\tDEBUG dataclient.py:278 -- Shutting down data channel.\n" |
305 | 279 | ] |
306 | 280 | } |
307 | 281 | ], |
|
312 | 286 | }, |
313 | 287 | { |
314 | 288 | "cell_type": "code", |
315 | | - "execution_count": 17, |
| 289 | + "execution_count": 11, |
316 | 290 | "id": "2c198f1f-68bf-43ff-a148-02b5cb000ff2", |
317 | 291 | "metadata": {}, |
318 | 292 | "outputs": [], |
|
0 commit comments