Skip to content

Commit 89d609b

Browse files
Merge pull request #832 from run-ai/v2.18-RUN-16833-Custom-value-for-autoscale-to-zero
RUN-16833 updated procedure with catalog
2 parents d76e808 + f8c506a commit 89d609b

File tree

5 files changed

+42
-25
lines changed

5 files changed

+42
-25
lines changed

docs/Researcher/user-interface/trainings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To add a training:
5858
9. (Optional) In the *Data sources* pane, press *add a new data source*. For more information, see [Creating a new data source](workspaces/create/create-ds.md) When complete press, *Create Data Source*.
5959
10. (Optional) In the *General* pane, add special settings for your training (optional):
6060

61-
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
61+
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
6262
2. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
6363
3. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
6464

@@ -80,7 +80,7 @@ To add a training:
8080
4. (Optional) In the *Data sources* pane, press *add a new data source*. For more information, see [Creating a new data source](workspaces/create/create-ds.md) When complete press, *Create Data Source*.
8181
5. (Optional) In the *General* pane, add special settings for your training (optional):
8282

83-
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
83+
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
8484
2. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
8585
3. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
8686

docs/Researcher/user-interface/workspaces/create/workspace-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Use the *Jobs form* below if you have not enabled the *Workloads* feature.
4444
8. Select a data source from the tiles. If your data source is not listed, use the *Search compute resources* box to find it. Press *New data source* to create a new data source if needed.
4545
9. In the *General* pane, add special settings for your workspace:
4646

47-
1. Press *Auto-deletion* to delete the workspace automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the workspace will be deleted immediately after it completes or fails.
47+
1. Press *Auto-deletion* to delete the workspace automatically when it either completes or fails. You can configure the timeframe in days, hours, minutes, and seconds. If the timeframe is set to 0, the workspace will be deleted immediately after it completes or fails. (default = 30 days)
4848
2. Press *Annotation* to a name and value to annotate the workspace. Repeat this step to add multiple annotations.
4949
3. Press *Label* to a name and value to label the workspace. Repeat this step to add multiple labels.
5050

@@ -80,7 +80,7 @@ Use the *Jobs form* below if you have not enabled the *Workloads* feature.
8080
8. Select a data source from the tiles. If your data source is not listed, use the *Search data resources* box to find it. Press *New data source* to create a new data source if needed.
8181
9. In the *General* pane, add special settings for your workspace:
8282

83-
1. Press *Auto-deletion* to delete the workspace automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the workspace will be deleted immediately after it completes or fails.
83+
1. Press *Auto-deletion* to delete the workspace automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the workspace will be deleted immediately after it completes or fails. (default = 30 days)
8484
2. Press *Annotation* to a name and value to annotate the workspace. Repeat this step to add multiple annotations.
8585
3. Press *Label* to a name and value to label the workspace. Repeat this step to add multiple labels.
8686

docs/admin/admin-ui-setup/templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To create a template:
3737
7. In the *Data sources* pane, select a data source. Press *New data source* to add a new data source to the system.
3838
8. In the *General* pane, choose to add the following:
3939

40-
* Auto-deletion—the time after which a workload that has completed or failed will be deleted. Press *+Auto-deletion* then configure the time in days, hours, minutes, and seconds.
40+
* Auto-deletion—the time after which a workload that has completed or failed will be deleted. Press *+Auto-deletion* then configure the time in days, hours, minutes, and seconds. (default = 30 days)
4141
* Annotation—press *+ Annotation* then enter a name and a value. You can add multiple annotations by pressing the *+ Annotation*.
4242
* Label—press *+Label* then enter a name and a value. You can add multiple labels by pressing the *+Label*.
4343

docs/admin/workloads/submitting-workloads.md

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To submit a workload using the UI:
3939

4040
1. Toggle the switch to allow the workspace to exceed the project's quota.
4141
2. Set the backoff limit before workload failure, this can be changed, if necessary. Use integers only. (Default = 6, maximum = 100, minimum = 0).
42-
3. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
42+
3. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
4343
4. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
4444
5. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
4545

@@ -78,7 +78,7 @@ To submit a workload using the UI:
7878
9. (Optional) In the *General* pane, add special settings for your training (optional):
7979

8080
1. Set the backoff limit before workload failure, this can be changed, if necessary. Use integers only. (Default = 6, maximum = 100, minimum = 0).
81-
2. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
81+
2. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
8282
3. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
8383
4. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
8484

@@ -106,7 +106,7 @@ To submit a workload using the UI:
106106
5. (Optional) In the *General* pane, add special settings for your training (optional):
107107

108108
1. Set the backoff limit before workload failure, this can be changed, if necessary. Use integers only. (Default = 6, maximum = 100, minimum = 0).
109-
2. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
109+
2. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
110110
3. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
111111
4. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
112112

@@ -119,36 +119,53 @@ To submit a workload using the UI:
119119
120120
When you select *Model*:
121121

122-
1. Select a model from the tiles. Use the search box to find a model that is not listed. If you can't find the model, see your system administrator.
122+
1. Select a catalog. Choose from *Run:ai* or *Hugging Face*.
123+
1. If you choose *Run:ai*, select a model from the tiles. Use the search box to find a model that is not listed. If you can't find the model, see your system administrator.
124+
2. If you choose *Hugging Face*, go to the next step.
123125
2. In the *Inference name* field, enter a name for the workload.
124-
3. In the *Compute resource* field, select a compute resource from the tiles.
125-
1. In the *Replica autoscaling* section, set the minimum and maximum replicas for your inference. Then select *Never* or *After one minute of inactivity* to set when the replicas should be automatically scaled down to zero.
126-
2. In the *Nodes* field, change the order of priority of the node pools, or add a new node pool to the list.
127-
4. When complete, press *Create inference*.
126+
3. In the *Credentials* field, enter the token to access the model catalog.
127+
4. If you selected *Hugging Face*, enter the name of the model in the *Model Name* section. This will not appear if you selected *Run:ai*.
128+
5. In the *Compute resource* field, select a compute resource from the tiles.
129+
130+
1. In the *Replica autoscaling* section, set the minimum and maximum replicas for your inference.
131+
2. In the *Set conditions for creating a new replica* section, use the drop down to select from `Throughput (Requests/sec)`, `Latency (milliseconds)`, or `Concurrency (Requests/sec)`. Then set the value. (default = 100) This section will only appear if you have 2 or more set as the maximum.
132+
3. In the *Set when replicas should be automatically scaled down to zero* section, from the drop down select *Never*, *After one, five, 15 or 30 minutes of inactivity*.
133+
134+
!!! Note
135+
When automatic scaling to zero is enabled, the minimum number of replicas is 0.
136+
137+
4. In the *Nodes* field, change the order of priority of the node pools, or add a new node pool to the list.
138+
6. When complete, press *Create inference*.
128139

129140
When you select *Custom*:
130141

131-
1. In the *Inference name* field, enter a name for the workload.
132-
2. In the *Environment* field, select an environment. Use the search box to find an environment that is not listed. If you can't find an environment, press *New environment* or see your system administrator.
142+
7. In the *Inference name* field, enter a name for the workload.
143+
8. In the *Environment* field, select an environment. Use the search box to find an environment that is not listed. If you can't find an environment, press *New environment* or see your system administrator.
133144
1. In the *Set the connection for your tool(s)* pane, choose a tool for your environment (if available).
134145
2. In the *Runtime settings* field, Set commands and arguments for the container running in the pod. (optional)
135146
3. In the *Environment variable* field, you can set one or more environment variables. (optional)
136-
3. In the *Compute resource* field, select a compute resource from the tiles. Use the search box to find a compute resource that is not listed. If you can't find an environment, press *New compute resource* or see your system administrator.
137-
1. In the *Replica autoscaling* section, set the minimum and maximum replicas for your inference. Then select *Never* or *After one minute of inactivity* to set when the replicas should be automatically scaled down to zero.
138-
2. In the *Nodes* field, change the order of priority of the node pools, or add a new node pool to the list.
139-
4. In the *Data sources* field, add a *New data source*. (optional)
147+
9. In the *Compute resource* field, select a compute resource from the tiles. Use the search box to find a compute resource that is not listed. If you can't find an environment, press *New compute resource* or see your system administrator.
148+
149+
1. In the *Replica autoscaling* section, set the minimum and maximum replicas for your inference.
150+
2. In the *Set conditions for creating a new replica* section, use the drop down to select from `Throughput (Requests/sec)`, `Latency (milliseconds)`, or `Concurrency (Requests/sec)`. Then set the value. (default = 100) This section will only appear if you have 2 or more set as the maximum.
151+
3. In the *Set when replicas should be automatically scaled down to zero* section, from the drop down select *Never*, *After one, five, 15 or 30 minutes of inactivity*.
152+
153+
!!! Note
154+
When automatic scaling to zero is enabled, the minimum number of replicas is 0.
155+
156+
10. In the *Data sources* field, add a *New data source*. (optional)
140157

141158
!!! Note
142159
143160
* Data sources that are not available will be greyed out.
144161
* Assets that are cluster syncing will be greyed out.
145162
* Only PVC, Git, and ConfigMap resources are supported.
146163

147-
5. In the *General* field you can:
148-
1. Add an *Auto-deletion* time. This sets the timeframe between inference completion/failure and auto-deletion. (optional)
164+
11. In the *General* field you can:
165+
1. Add an *Auto-deletion* time. This sets the timeframe between inference completion/failure and auto-deletion. (optional) (default = 30 days)
149166
2. Add one or more *Annotation*. (optional)
150167
3. Add one or more *Labels*. (optional)
151-
6. When complete, press *Create inference*.
168+
12. When complete, press *Create inference*.
152169

153170
## Workload Policies
154171

docs/admin/workloads/workload-overview-admin.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ To submit a workload using the UI:
9090
7. In the *Data sources* pane, press *add a new data source*. For more information, see [Creating a new data source](../../Researcher/user-interface/workspaces/create/create-ds.md) When complete press, *Create Data Source*.
9191
8. In the *General* pane, add special settings for your training (optional):
9292

93-
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
93+
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
9494
2. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
9595
3. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
9696

@@ -123,7 +123,7 @@ To submit a workload using the UI:
123123
8. (Optional) In the *Data sources* pane, press *add a new data source*. For more information, see [Creating a new data source](../../Researcher/user-interface/workspaces/create/create-ds.md) When complete press, *Create Data Source*.
124124
9. (Optional) In the *General* pane, add special settings for your training (optional):
125125

126-
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
126+
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
127127
2. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
128128
3. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
129129

@@ -145,7 +145,7 @@ To submit a workload using the UI:
145145
4. (Optional) In the *Data sources* pane, press *add a new data source*. For more information, see [Creating a new data source](../../Researcher/user-interface/workspaces/create/create-ds.md) When complete press, *Create Data Source*.
146146
5. (Optional) In the *General* pane, add special settings for your training (optional):
147147

148-
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails.
148+
1. Press *Auto-deletion* to delete the training automatically when it either completes or fails. You can configure the timeframe in days, hours, minuets, and seconds. If the timeframe is set to 0, the training will be deleted immediately after it completes or fails. (default = 30 days)
149149
2. Press *Annotation* to a name and value to annotate the training. Repeat this step to add multiple annotations.
150150
3. Press *Label* to a name and value to label the training. Repeat this step to add multiple labels.
151151

0 commit comments

Comments
 (0)