> 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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
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=<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.
