• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
OpenTechTips

OpenTechTips

Comprehensive IT Guides for Pros and Enthusiasts

MENUMENU
  • HOME
  • ALL TOPICS
    • Exchange
    • InfoSec
    • Linux
    • Networking
    • Scripting
      • PowerShell
    • SSL
    • Tools
    • Virtualization
    • Web
    • Windows
  • ABOUT
  • SUBSCRIBE
Home » Outlook disconnects during DAG maintenance !!!

Outlook disconnects during DAG maintenance !!!

June 29, 2020 - by Zsolt Agoston - last edited on June 30, 2020

Basic CAS connection path

In this article we address the issue of client access during Exchange maintenance. By default, all client access services are configured with the owner server's name on Exchange servers after installation. Let's take a simple example. We have three client access capable Exchange servers in our system, like in our example: MB1, MB2 and MB3. Outlook clients will connect to them through the appropriate MAPI virtual directory on the CAS servers. Like a mailbox hosted on MB1 server will likely connect through the https://MB1.alwayshotcafe.com/mapi address, another user stored on a database on MB2 server will likely be using https://MB2.alwayshotcafe.com/mapi, and so on.

Clients are not necessarily connected through the Mailbox server where the user mailbox is hosted. Any Exchange server with the Mailbox role (starting with Exchange 2016 CAS is a part of the Mailbox server role) can be used by users to access their mailboxes, even if they have their mailboxes hosted on a different MB server in the same organization. On top of it, the client access connections are now stateless, so they can switch servers even during a client session.

Client connection during DAG maintenance

Now, say we have a DAG configured, with MB1 and MB2 servers are member nodes. A database that hosts John Doe's mailbox is currently active on MB1. We need to perform a server maintenance on MB1, that will take it offline for a while. We obviously perform the planned DAG failover procedure, so all the databases on MB1 will be activated on the other DAG members (on MB2 in this case), providing uninterrupted mail flow for the users on those databases. It is now safe to power down the member server in maintenance mode. But what happens to the users who are currently connected through this server? Remember, a user does not need to have their mailboxes hosted on MB1 to be connected through this server by Outlook. If we simply powered down MB1, their Outlook would freeze and it would take quite some time to connect through another server.

Outlook disconnects during DAG maintenance !!!

Of course, we might wait 1-2 hours for the client connections to switch over to the active server, but that's not ideal and not guaranteed to work for all users.

Outlook disconnects during DAG maintenance !!!

As seen in the screenshots below, the client will try to connect through the mailbox server where it's mailbox is hosted.

Outlook disconnects during DAG maintenance !!!

And through MB2:

Outlook disconnects during DAG maintenance !!!

Load Balancing

To get around this issue, as an elegant solution we configure a single namespace for all the CAS servers. Like https://outlook.alwayshotcafe.com/... , that is pointing to a load balancer and the load balancer will distribute the connections between the member servers. Remember, the CAS connections are stateless starting from Exchange 2013, so we can use both layer4 and layer 7 load balancers to achieve high availability. See a detailed guide here on how to set up HAProxy on pfSense as an excellent load balancing solution for Exchange CAS connections.

Outlook disconnects during DAG maintenance !!!

Now all clients will use outlook.alwayshotcafe.com as the common connection point. When a CAS server becomes unaccessible, the load balancer will redirect traffic to active servers automatically or manually, it all depends on your preference how you configure the load balancer.

Outlook disconnects during DAG maintenance !!!

Next step: configure load balancing for Exchange 2013-19 with HAProxy

Reader Interactions

Comments Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Tools

Secondary Sidebar

CONTENTS

  • Basic CAS connection path
  • Client connection during DAG maintenance
  • Load Balancing

  • Terms of Use
  • Disclaimer
  • Privacy Policy
Manage your privacy

To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.

Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}
Manage your privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Statistics

Marketing

Features
Always active

Always active
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Manage options
{title} {title} {title}