Skip to content

Commit e9786a2

Browse files
Changes in docs for release: v0.21.0 (#687)
Co-authored-by: codeflare-machine-account <[email protected]>
1 parent c2eaa15 commit e9786a2

File tree

9 files changed

+1071
-161
lines changed

9 files changed

+1071
-161
lines changed

docs/detailed-documentation/cluster/cluster.html

+135-86
Large diffs are not rendered by default.

docs/detailed-documentation/cluster/config.html

+77-17
Large diffs are not rendered by default.

docs/detailed-documentation/cluster/index.html

+9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ <h1 class="title">Module <code>codeflare_sdk.cluster</code></h1>
4949
list_all_clusters,
5050
)
5151

52+
from .widgets import (
53+
view_clusters,
54+
)
55+
5256
from .awload import AWManager</code></pre>
5357
</details>
5458
</section>
@@ -81,6 +85,10 @@ <h2 class="section-title" id="header-submodules">Sub-modules</h2>
8185
states and AppWrapper states, and CodeFlare cluster states, as well as
8286
</p></div>
8387
</dd>
88+
<dt><code class="name"><a title="codeflare_sdk.cluster.widgets" href="widgets.html">codeflare_sdk.cluster.widgets</a></code></dt>
89+
<dd>
90+
<div class="desc"><p>The widgets sub-module contains the ui widgets created using the ipywidgets package.</p></div>
91+
</dd>
8492
</dl>
8593
</section>
8694
<section>
@@ -108,6 +116,7 @@ <h1>Index</h1>
108116
<li><code><a title="codeflare_sdk.cluster.cluster" href="cluster.html">codeflare_sdk.cluster.cluster</a></code></li>
109117
<li><code><a title="codeflare_sdk.cluster.config" href="config.html">codeflare_sdk.cluster.config</a></code></li>
110118
<li><code><a title="codeflare_sdk.cluster.model" href="model.html">codeflare_sdk.cluster.model</a></code></li>
119+
<li><code><a title="codeflare_sdk.cluster.widgets" href="widgets.html">codeflare_sdk.cluster.widgets</a></code></li>
111120
</ul>
112121
</li>
113122
</ul>

docs/detailed-documentation/cluster/model.html

+48-26
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.model</code></h1>
5454
from dataclasses import dataclass, field
5555
from enum import Enum
5656
import typing
57+
from typing import Union
5758

5859

5960
class RayClusterStatus(Enum):
@@ -106,12 +107,15 @@ <h1 class="title">Module <code>codeflare_sdk.cluster.model</code></h1>
106107

107108
name: str
108109
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]
115119
namespace: str
116120
dashboard: str
117121
worker_extended_resources: typing.Dict[str, int] = field(default_factory=dict)
@@ -293,7 +297,7 @@ <h3>Class variables</h3>
293297
</dd>
294298
<dt id="codeflare_sdk.cluster.model.RayCluster"><code class="flex name class">
295299
<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] = &lt;factory&gt;, head_extended_resources: Dict[str, int] = &lt;factory&gt;)</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] = &lt;factory&gt;, head_extended_resources: Dict[str, int] = &lt;factory&gt;)</span>
297301
</code></dt>
298302
<dd>
299303
<div class="desc"><p>For storing information about a Ray cluster.</p></div>
@@ -309,12 +313,15 @@ <h3>Class variables</h3>
309313

310314
name: str
311315
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]
318325
namespace: str
319326
dashboard: str
320327
worker_extended_resources: typing.Dict[str, int] = field(default_factory=dict)
@@ -326,15 +333,23 @@ <h3>Class variables</h3>
326333
<dd>
327334
<div class="desc"></div>
328335
</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>
330341
<dd>
331342
<div class="desc"></div>
332343
</dd>
333344
<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>
334345
<dd>
335346
<div class="desc"></div>
336347
</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>
338353
<dd>
339354
<div class="desc"></div>
340355
</dd>
@@ -346,27 +361,31 @@ <h3>Class variables</h3>
346361
<dd>
347362
<div class="desc"></div>
348363
</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>
349368
<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>
350369
<dd>
351370
<div class="desc"></div>
352371
</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>
354373
<dd>
355374
<div class="desc"></div>
356375
</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>
358377
<dd>
359378
<div class="desc"></div>
360379
</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>
362381
<dd>
363382
<div class="desc"></div>
364383
</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>
366385
<dd>
367386
<div class="desc"></div>
368387
</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>
370389
<dd>
371390
<div class="desc"></div>
372391
</dd>
@@ -474,17 +493,20 @@ <h4><code><a title="codeflare_sdk.cluster.model.CodeFlareClusterStatus" href="#c
474493
<h4><code><a title="codeflare_sdk.cluster.model.RayCluster" href="#codeflare_sdk.cluster.model.RayCluster">RayCluster</a></code></h4>
475494
<ul class="">
476495
<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>
478498
<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>
480501
<li><code><a title="codeflare_sdk.cluster.model.RayCluster.name" href="#codeflare_sdk.cluster.model.RayCluster.name">name</a></code></li>
481502
<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>
482504
<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>
484507
<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>
488510
</ul>
489511
</li>
490512
<li>

0 commit comments

Comments
 (0)