Previous page

Next page

Locate page in Contents

RD Session Host Drain Mode Examples

Example 1: Scheduling a server group for reboot without the drain mode

A server group contains 3 servers: 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 server reboot task is triggered.

Example 2: Scheduling a server group for reboot with the drain mode enabled

A server group containing 3 servers: 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 server 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 server 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 servers.
  2. Servers A and B have no active or disconnected sessions, so they are restarted immediately.
  3. Server C still has open/disconnected sessions, so it continues to run until all users end their sessions. If in 1 hour the server still has active sessions, they are terminated and the server is restarted.