You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve logging in error conditions & update auto-stop.rst (skypilot-org#675)
* Log error for HEAD_FAILED; don't duplicate logging for no_retry=True.
* Minor touches on auto-stop.rst
* Revert to only printing errors on GANG_FAILED
Copy file name to clipboardExpand all lines: docs/source/reference/auto-stop.rst
+16-12
Original file line number
Diff line number
Diff line change
@@ -3,40 +3,44 @@ Auto-stopping
3
3
=========
4
4
5
5
Sky's **auto-stopping** can automatically stop a cluster after a few minutes of idleness.
6
+
With auto-stopping, users can simply submit jobs and leave their laptops, while
7
+
**ensuring no unnecessary spending occurs**: after jobs have finished, the
8
+
cluster(s) used will be automatically stopped (and restarted later).
6
9
7
-
To setup auto-stopping for a cluster, :code:`sky autostop` can be used.
10
+
To setup auto-stopping for a cluster, use :code:`sky autostop`:
8
11
9
12
.. code-block:: bash
10
13
11
14
# Launch a cluster with logging detached
12
-
sky launch -c mycluster -d cluster.yaml
15
+
sky launch -d -c mycluster cluster.yaml
13
16
14
-
#Set auto-stopping for the cluster, after cluster will be stopped 10 minutes of idleness
17
+
#Auto-stop the cluster after 10 minutes of idleness
15
18
sky autostop mycluster -i 10
16
19
20
+
# Use the default, 5 minutes of idleness
21
+
# sky autostop mycluster
22
+
17
23
The :code:`-d / --detach` flag detaches logging from the terminal.
18
24
19
-
To cancel the auto-stop scheduled on the cluster:
25
+
To cancel a scheduled auto-stop on the cluster:
20
26
21
27
.. code-block:: bash
22
28
23
-
# Cancel auto-stop for the cluster
24
29
sky autostop mycluster --cancel
25
30
26
-
To view the status of the cluster:
31
+
To view the status of the cluster, use ``sky status [--refresh]``:
27
32
28
33
.. code-block:: bash
29
34
30
35
# Show a cluster's jobs (IDs, statuses).
31
36
sky status
32
-
NAME LAUNCHED RESOURCES STATUS AUTOSTOP COMMAND
33
-
mucluster 1 min ago 2x AWS(m4.2xlarge) UP 0 min sky launch -d -c ...
37
+
NAME LAUNCHED RESOURCES STATUS AUTOSTOP COMMAND
38
+
mycluster 1 min ago 2x AWS(m4.2xlarge) UP 10 min sky launch -d -c ...
34
39
35
40
# Refresh the status for auto-stopping
36
41
sky status --refresh
37
-
NAME LAUNCHED RESOURCES STATUS AUTOSTOP COMMAND
38
-
mucluster 1 min ago 2x AWS(m4.2xlarge) STOPPED - sky launch -d -c ...
39
-
42
+
NAME LAUNCHED RESOURCES STATUS AUTOSTOP COMMAND
43
+
mycluster 11 min ago 2x AWS(m4.2xlarge) STOPPED - sky launch -d -c ...
40
44
41
-
The cluster status in :code:`sky status` shows the cached status of the cluster, which can be out-dated for clusters with auto-stopping scheduled. To view a real status of the cluster with auto-stopping scheduled, use :code:`sky status --refresh`.
42
45
46
+
:code:`sky status` shows the cached statuses, which can be outdated for clusters with auto-stopping scheduled. To query the real statuses of clusters with auto-stopping scheduled, use :code:`sky status --refresh`.
0 commit comments