> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-admin-guide/v21-ja-jp/rd-sesshonhosuto/rd-sesshonhosutono/using-scheduler-rd-session-hosts/rd-sesshonhosutonodoreinmdono.md).

# RD セッションホストのドレインモードの例

**例 1: ドレインモードなしでホストプールを再起動するようにスケジュールする**

ホストプールには次の 3 つのホストが含まれています。A、B、C

* 日付: 2020/01/24
* 開始時刻: 午前 10:45
* メッセージを送信: 2 分前

ホストの再起動タスクがトリガーされる 2 分前に、アクティブなセッションを持つユーザーに通知が送信されます。

**例 2: ドレインモードを有効にしてホストプールを再起動するようにスケジュールする**

ホストプールには次の 3 つのホストが含まれています。A、B、C

* 日付: 2020/01/24
* 開始時刻: 午前 10:45
* ドレインモード: 有効
* 強制的にサーバーを再起動するまで後: 1 時間
* メッセージを送信: 2 分前、15 分後、30 分後。

ホストの再起動タスクがトリガーされる 2 分前にセッションユーザーに通知が送信されます。さらにタスクがトリガーされてから 15 分後と 30 分後にも通知が送信されます。ドレインモードが有効化されているため、ユーザーセッションは引き続き実行されます。つまりホストを再起動するまでメッセージの表示は可能であり、セッションを閉じることができます。強制再起動の時間が 1 時間に設定されているため、ユーザーは、タスクのトリガーから 30 分後に送信される最後のメッセージを確認することができます。

タスクがトリガーされたときの動作:

1. ホストでドレインモードが有効になります。
2. ホスト A と B にはアクティブなセッションや切断されたセッションが存在しないため、それらのサーバーは直ちに再起動されます。
3. ホスト C には、開いている/切断されたセッションがまだ存在するため、サーバー C は、すべてのユーザーがセッションを終了するまで引き続き実行されます。1 時間後にまだホストにアクティブなセッションがある場合、セッションは終了されサーバーが再起動されます。


---

# 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 following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v21-ja-jp/rd-sesshonhosuto/rd-sesshonhosutono/using-scheduler-rd-session-hosts/rd-sesshonhosutonodoreinmdono.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

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.
