RD Session Host drain mode examples

Example 1: Scheduling a host pool for reboot without the drain mode

A host pool contains 3 hosts: A, B, C

  • Date: 1/24/2020
  • Start time: 10:45am
  • Send message: 2 minutes before

Users with active sessions are notified 2 minutes before the host reboot task is triggered.

Example 2: Scheduling a host pool for reboot with the drain mode enabled

A host pool containing 3 host: A, B, C

  • Date: 1/24/2020
  • Start Time: 10:45am
  • Drain mode: enabled
  • Force reboot after: 1 hour
  • Send messages: 2 minutes before, 15 minutes after, 30 minutes after.

The session users are notified 2 minutes before the host reboot task is triggered and then twice more, 15 and 30 minutes after the task is triggered. Because the drain mode is enabled, the user sessions will continue to run, so they will see the messages and will be able to close their sessions before the host reboots. Note that since the force reboot time is set at 1 hour, the users will see the last message, which will be sent 30 minutes after the task is triggered.

When the task is triggered:

  1. The drain mode is enabled on the hosts.
  2. Hosts A and B have no active or disconnected sessions, so they are restarted immediately.
  3. Host C still has open/disconnected sessions, so it continues to run until all users end their sessions. If in 1 hour the host still has active sessions, they are terminated and the host is restarted.
Was this topic helpful?