@@ -54,6 +54,7 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.model</code></h1>
54
54
from dataclasses import dataclass, field
55
55
from enum import Enum
56
56
import typing
57
+ from typing import Union
57
58
58
59
59
60
class RayClusterStatus(Enum):
@@ -106,12 +107,15 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.model</code></h1>
106
107
107
108
name: str
108
109
status: RayClusterStatus
109
- head_cpus: int
110
- head_mem: str
111
- workers: int
112
- worker_mem_min: str
113
- worker_mem_max: str
114
- worker_cpu: int
110
+ head_cpu_requests: int
111
+ head_cpu_limits: int
112
+ head_mem_requests: str
113
+ head_mem_limits: str
114
+ num_workers: int
115
+ worker_mem_requests: str
116
+ worker_mem_limits: str
117
+ worker_cpu_requests: Union[int, str]
118
+ worker_cpu_limits: Union[int, str]
115
119
namespace: str
116
120
dashboard: str
117
121
worker_extended_resources: typing.Dict[str, int] = field(default_factory=dict)
@@ -293,7 +297,7 @@ <h3>Class variables</h3>
293
297
</ dd >
294
298
< dt id ="codeflare_sdk.cluster.model.RayCluster "> < code class ="flex name class ">
295
299
< span > class < span class ="ident "> RayCluster</ span > </ span >
296
- < span > (</ span > < span > name: str, status: < a title ="codeflare_sdk.cluster.model.RayClusterStatus " href ="#codeflare_sdk.cluster.model.RayClusterStatus "> RayClusterStatus</ a > , head_cpus : int, head_mem: str, workers: int, worker_mem_min : str, worker_mem_max : str, worker_cpu: int, namespace: str, dashboard: str, worker_extended_resources: Dict[str, int] = <factory>, head_extended_resources: Dict[str, int] = <factory>)</ span >
300
+ < span > (</ span > < span > name: str, status: < a title ="codeflare_sdk.cluster.model.RayClusterStatus " href ="#codeflare_sdk.cluster.model.RayClusterStatus "> RayClusterStatus</ a > , head_cpu_requests : int, head_cpu_limits: int, head_mem_requests: str, head_mem_limits: str, num_workers: int, worker_mem_requests : str, worker_mem_limits : str, worker_cpu_requests: Union[ int, str], worker_cpu_limits: Union[int, str] , namespace: str, dashboard: str, worker_extended_resources: Dict[str, int] = <factory>, head_extended_resources: Dict[str, int] = <factory>)</ span >
297
301
</ code > </ dt >
298
302
< dd >
299
303
< div class ="desc "> < p > For storing information about a Ray cluster.</ p > </ div >
@@ -309,12 +313,15 @@ <h3>Class variables</h3>
309
313
310
314
name: str
311
315
status: RayClusterStatus
312
- head_cpus: int
313
- head_mem: str
314
- workers: int
315
- worker_mem_min: str
316
- worker_mem_max: str
317
- worker_cpu: int
316
+ head_cpu_requests: int
317
+ head_cpu_limits: int
318
+ head_mem_requests: str
319
+ head_mem_limits: str
320
+ num_workers: int
321
+ worker_mem_requests: str
322
+ worker_mem_limits: str
323
+ worker_cpu_requests: Union[int, str]
324
+ worker_cpu_limits: Union[int, str]
318
325
namespace: str
319
326
dashboard: str
320
327
worker_extended_resources: typing.Dict[str, int] = field(default_factory=dict)
@@ -326,15 +333,23 @@ <h3>Class variables</h3>
326
333
< dd >
327
334
< div class ="desc "> </ div >
328
335
</ dd >
329
- < dt id ="codeflare_sdk.cluster.model.RayCluster.head_cpus "> < code class ="name "> var < span class ="ident "> head_cpus</ span > : int</ code > </ dt >
336
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.head_cpu_limits "> < code class ="name "> var < span class ="ident "> head_cpu_limits</ span > : int</ code > </ dt >
337
+ < dd >
338
+ < div class ="desc "> </ div >
339
+ </ dd >
340
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.head_cpu_requests "> < code class ="name "> var < span class ="ident "> head_cpu_requests</ span > : int</ code > </ dt >
330
341
< dd >
331
342
< div class ="desc "> </ div >
332
343
</ dd >
333
344
< dt id ="codeflare_sdk.cluster.model.RayCluster.head_extended_resources "> < code class ="name "> var < span class ="ident "> head_extended_resources</ span > : Dict[str, int]</ code > </ dt >
334
345
< dd >
335
346
< div class ="desc "> </ div >
336
347
</ dd >
337
- < dt id ="codeflare_sdk.cluster.model.RayCluster.head_mem "> < code class ="name "> var < span class ="ident "> head_mem</ span > : str</ code > </ dt >
348
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.head_mem_limits "> < code class ="name "> var < span class ="ident "> head_mem_limits</ span > : str</ code > </ dt >
349
+ < dd >
350
+ < div class ="desc "> </ div >
351
+ </ dd >
352
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.head_mem_requests "> < code class ="name "> var < span class ="ident "> head_mem_requests</ span > : str</ code > </ dt >
338
353
< dd >
339
354
< div class ="desc "> </ div >
340
355
</ dd >
@@ -346,27 +361,31 @@ <h3>Class variables</h3>
346
361
< dd >
347
362
< div class ="desc "> </ div >
348
363
</ dd >
364
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.num_workers "> < code class ="name "> var < span class ="ident "> num_workers</ span > : int</ code > </ dt >
365
+ < dd >
366
+ < div class ="desc "> </ div >
367
+ </ dd >
349
368
< dt id ="codeflare_sdk.cluster.model.RayCluster.status "> < code class ="name "> var < span class ="ident "> status</ span > : < a title ="codeflare_sdk.cluster.model.RayClusterStatus " href ="#codeflare_sdk.cluster.model.RayClusterStatus "> RayClusterStatus</ a > </ code > </ dt >
350
369
< dd >
351
370
< div class ="desc "> </ div >
352
371
</ dd >
353
- < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_cpu "> < code class ="name "> var < span class ="ident "> worker_cpu </ span > : int</ code > </ dt >
372
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_cpu_limits "> < code class ="name "> var < span class ="ident "> worker_cpu_limits </ span > : Union[ int, str] </ code > </ dt >
354
373
< dd >
355
374
< div class ="desc "> </ div >
356
375
</ dd >
357
- < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_extended_resources "> < code class ="name "> var < span class ="ident "> worker_extended_resources </ span > : Dict[str, int ]</ code > </ dt >
376
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_cpu_requests "> < code class ="name "> var < span class ="ident "> worker_cpu_requests </ span > : Union[int, str ]</ code > </ dt >
358
377
< dd >
359
378
< div class ="desc "> </ div >
360
379
</ dd >
361
- < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_mem_max "> < code class ="name "> var < span class ="ident "> worker_mem_max </ span > : str</ code > </ dt >
380
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_extended_resources "> < code class ="name "> var < span class ="ident "> worker_extended_resources </ span > : Dict[ str, int] </ code > </ dt >
362
381
< dd >
363
382
< div class ="desc "> </ div >
364
383
</ dd >
365
- < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_mem_min "> < code class ="name "> var < span class ="ident "> worker_mem_min </ span > : str</ code > </ dt >
384
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_mem_limits "> < code class ="name "> var < span class ="ident "> worker_mem_limits </ span > : str</ code > </ dt >
366
385
< dd >
367
386
< div class ="desc "> </ div >
368
387
</ dd >
369
- < dt id ="codeflare_sdk.cluster.model.RayCluster.workers "> < code class ="name "> var < span class ="ident "> workers </ span > : int </ code > </ dt >
388
+ < dt id ="codeflare_sdk.cluster.model.RayCluster.worker_mem_requests "> < code class ="name "> var < span class ="ident "> worker_mem_requests </ span > : str </ code > </ dt >
370
389
< dd >
371
390
< div class ="desc "> </ div >
372
391
</ dd >
@@ -474,17 +493,20 @@ <h4><code><a title="codeflare_sdk.cluster.model.CodeFlareClusterStatus" href="#c
474
493
< h4 > < code > < a title ="codeflare_sdk.cluster.model.RayCluster " href ="#codeflare_sdk.cluster.model.RayCluster "> RayCluster</ a > </ code > </ h4 >
475
494
< ul class ="">
476
495
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.dashboard " href ="#codeflare_sdk.cluster.model.RayCluster.dashboard "> dashboard</ a > </ code > </ li >
477
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_cpus " href ="#codeflare_sdk.cluster.model.RayCluster.head_cpus "> head_cpus</ a > </ code > </ li >
496
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_cpu_limits " href ="#codeflare_sdk.cluster.model.RayCluster.head_cpu_limits "> head_cpu_limits</ a > </ code > </ li >
497
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_cpu_requests " href ="#codeflare_sdk.cluster.model.RayCluster.head_cpu_requests "> head_cpu_requests</ a > </ code > </ li >
478
498
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_extended_resources " href ="#codeflare_sdk.cluster.model.RayCluster.head_extended_resources "> head_extended_resources</ a > </ code > </ li >
479
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_mem " href ="#codeflare_sdk.cluster.model.RayCluster.head_mem "> head_mem</ a > </ code > </ li >
499
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_mem_limits " href ="#codeflare_sdk.cluster.model.RayCluster.head_mem_limits "> head_mem_limits</ a > </ code > </ li >
500
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.head_mem_requests " href ="#codeflare_sdk.cluster.model.RayCluster.head_mem_requests "> head_mem_requests</ a > </ code > </ li >
480
501
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.name " href ="#codeflare_sdk.cluster.model.RayCluster.name "> name</ a > </ code > </ li >
481
502
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.namespace " href ="#codeflare_sdk.cluster.model.RayCluster.namespace "> namespace</ a > </ code > </ li >
503
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.num_workers " href ="#codeflare_sdk.cluster.model.RayCluster.num_workers "> num_workers</ a > </ code > </ li >
482
504
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.status " href ="#codeflare_sdk.cluster.model.RayCluster.status "> status</ a > </ code > </ li >
483
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_cpu " href ="#codeflare_sdk.cluster.model.RayCluster.worker_cpu "> worker_cpu</ a > </ code > </ li >
505
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_cpu_limits " href ="#codeflare_sdk.cluster.model.RayCluster.worker_cpu_limits "> worker_cpu_limits</ a > </ code > </ li >
506
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_cpu_requests " href ="#codeflare_sdk.cluster.model.RayCluster.worker_cpu_requests "> worker_cpu_requests</ a > </ code > </ li >
484
507
< li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_extended_resources " href ="#codeflare_sdk.cluster.model.RayCluster.worker_extended_resources "> worker_extended_resources</ a > </ code > </ li >
485
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_mem_max " href ="#codeflare_sdk.cluster.model.RayCluster.worker_mem_max "> worker_mem_max</ a > </ code > </ li >
486
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_mem_min " href ="#codeflare_sdk.cluster.model.RayCluster.worker_mem_min "> worker_mem_min</ a > </ code > </ li >
487
- < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.workers " href ="#codeflare_sdk.cluster.model.RayCluster.workers "> workers</ a > </ code > </ li >
508
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_mem_limits " href ="#codeflare_sdk.cluster.model.RayCluster.worker_mem_limits "> worker_mem_limits</ a > </ code > </ li >
509
+ < li > < code > < a title ="codeflare_sdk.cluster.model.RayCluster.worker_mem_requests " href ="#codeflare_sdk.cluster.model.RayCluster.worker_mem_requests "> worker_mem_requests</ a > </ code > </ li >
488
510
</ ul >
489
511
</ li >
490
512
< li >
0 commit comments