这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sites/friday/src/get-started/here/set-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@ To do so, follow these steps:

{{% vendor/name %}} grabs the previous built images from earlier, applies your resource selections to them, and deploys your full application!

{{% note %}}
If the deployment fails, you may need to set the resources again.
{{% /note %}}

{{< guide-buttons previous="Back" next="Revisions" type="*" >}}

24 changes: 18 additions & 6 deletions sites/friday/src/manage-resources/adjust-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ title= Using the CLI

Run the `{{% vendor/cli %}} resources:set` command, and follow the prompts to set resources for each of your apps and services.

{{< note title= "Tip" >}}
{{< note >}}

For further guidance on how to set resources using the CLI, run the `{{% vendor/cli %}} resources:set --help` command.

Note that if the deployment fails after you've run `{{% vendor/cli %}} resources:set`,
you may need to set the resources again.

{{< /note >}}

After you've set resources, your environment is redeployed,
Expand Down Expand Up @@ -102,39 +105,48 @@ or run commands manually.

Run the `{{% vendor/cli %}} resources:set` command, and follow the prompts to set resources for each of your apps and services.

{{% note %}}
For further guidance on how to set resources using the CLI, run the `{{% vendor/cli %}} resources:set --help` command.

Note that if the deployment fails after you've run `{{% vendor/cli %}} resources:set`,
you may need to set the resources again.
{{% /note %}}

- **Manual commands:**

To scale an app or worker, run the following command:

```bash
```bash {location="Terminal"}
{{% vendor/cli %}} resources:set --count {{< variable "APP_NAME" >}}:{{< variable "NUMBER_OF_INSTANCES" >}}
```

For example, to scale your `myapp` app to 3 instances, run the following command:

```bash
```bash {location="Terminal"}
{{% vendor/cli %}} resources:set --count myapp:3
```

You can also set the same instance count for all your apps using a wildcard.
To do so, run the following command:

```bash
```bash {location="Terminal"}
{{% vendor/cli %}} resources:set --count '*:{{< variable "NUMBER_OF_INSTANCES" >}}'
```

For example, to scale all your apps to 3 instances, run the following command:

```bash
```bash {location="Terminal"}
{{% vendor/cli %}} resources:set --count '*:3'
```

{{% note %}}
For further guidance on how to set resources using the CLI, run the `{{% vendor/cli %}} resources:set --help` command.

After you've set the number of instances for your apps and workers, your environment is redeployed.
If you've made no other changes, this redeployment causes no downtime.

If the redeployment fails after you've run `{{% vendor/cli %}} resources:set`,
you may need to set the resources again.
{{% /note %}}

<--->

Expand Down
Loading