Skip to content

Commit 078fde9

Browse files
[UX] Remove creation_policy from Concept #3527
1 parent ebfd895 commit 078fde9

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

docs/docs/concepts/snippets/manage-fleets.ext

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
1-
### Creation policy
2-
3-
By default, when you run `dstack apply` with a dev environment, task, or service,
4-
if no `idle` instances from the available fleets meet the requirements, `dstack` provisions a new instance
5-
using configured backends.
6-
7-
To ensure `dstack apply` doesn't provision a new instance but reuses an existing one,
8-
pass `-R` (or `--reuse`) to `dstack apply`.
9-
10-
<div class="termy">
11-
12-
```shell
13-
$ dstack apply -R -f examples/.dstack.yml
14-
```
15-
16-
</div>
17-
18-
Or, set [`creation_policy`](../reference/dstack.yml/dev-environment.md#creation_policy) to `reuse` in the run configuration.
19-
201
### Idle duration
212

223
If a run provisions a new instance, the instance stays `idle` for 5 minutes by default and can be reused within that time.

0 commit comments

Comments
 (0)