> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/azure-gou-cheng/azure-sizing/autoscaling.md).

# 自動スケーリング

## 手順

{% stepper %}
{% step %}

### App Service プランの自動スケール設定に移動します

Azure Portal > App Service プラン > *あなたの SCEPman App Service プラン* > 設定 > スケールアウト

<figure><img src="/files/cef4f383bc6779a3e3616a0936bb0bd6304ac42e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
App Service プランが少なくとも次を使用していることを確認してください: **S1 または P0V3** 価格レベル。下位のプランでは複数インスタンスを提供できない場合があります。
{% endhint %}
{% endstep %}

{% step %}

### ルールベースの自動スケーリングを選択します

もう一度 **ルールベース**、その後 **構成** 進めるには。

<figure><img src="/files/453cb9dbc8af13bda7ba342a91826a93b9c19c83" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 自動スケール設定を構成する

サービスの現在の負荷に基づいてインスタンス数をスケールするには、2 つのスケーリング ルール条件を追加する必要があります。高負荷時にインスタンス数を増やすルールと、負荷が再び減少した後にインスタンス数を減らすルールです。

<figure><img src="/files/0bf12437cb072cb853fd1ac45c187df30a61e0b4" alt=""><figcaption></figcaption></figure>

1. もう一度 **カスタム自動スケール**
2. 適切な名前を次に入力してください: **自動スケール設定名**
3. もう一度 **メトリックに基づいてスケールする** 定義済みのルール セットに基づく自動スケーリングを有効にするには
4. ビジネス要件に合わせてインスタンスの上限と下限を設定します:
   * 最小
   * 最大
   * 既定
5. もう一度 **ルールを追加** 自動スケーリング ルールを構成する準備ができたら
   {% endstep %}

{% step %}

### 自動スケーリング ルールを構成する

{% hint style="info" %}
増加ルールと減少ルールの設定は以下を推奨します。\nただし、これはワークロードによって異なり、監視と最適化が必要である点にご注意ください!
{% endhint %}

#### インスタンス数増加ルール

1. **メトリックをインスタンス数で割るを有効にする**
2. 選択 **より大きい** を演算子として選択し、しきい値を次に設定します: **70** （パーセント）
3. 継続時間を次に設定します: **10** （分）
4. 次を確認してください: **時間粒度の統計** が **平均**
5. 次を確認してください: **操作** が **次の数だけ増やす**
6. 次を設定します **クールダウン（分）** を **15** （分）
7. 次を確認してください: **インスタンス数 (1)** 現在のインスタンスに追加されます
8. クリック **追加** 完了したら

<figure><img src="/files/d523e3911525d03ed27379d09ead5bce91fbcd0c" alt=""><figcaption></figcaption></figure>

#### インスタンス数減少ルール

1. もう一度 **ルールを追加** 追加のルールを追加するには
2. **メトリックをインスタンス数で割るを有効にする**
3. 選択 **より小さい** を演算子として選択し、しきい値を次に設定します: **35** （パーセント）
4. 継続時間を次に設定します: **20** （分）
5. 次を確認してください: **時間粒度の統計** が **平均**
6. 次を確認してください: **操作** が **次の数だけ減らす**
7. 次を設定します **クールダウン（分）** を **30** （分）
8. 次を確認してください: **インスタンス数 (1)** 現在のインスタンスから削除されます
9. クリック **追加** 完了したら

<figure><img src="/files/3ea819cf80673fa2281830f52e282f0ab01bcdec" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 自動スケール設定を保存

おめでとうございます! App Service プランは、これでルールに従ってスケールアップおよびスケールダウンします。

<figure><img src="/files/1298512ec1573d816bc6d905406cd41c63306a0f" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/ja/azure-gou-cheng/azure-sizing/autoscaling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
