Udostępnij za pośrednictwem


Exchange 2013 Sizing and Configuration Recommendations

Applies to: Exchange Server 2013

Exchange 2013 is more demanding of system resources than previous versions of Exchange. By correctly sizing your Exchange 2013 infrastructure, and then making some recommended configurations to Exchange-related components within that infrastructure, you can lay the groundwork for an optimally performing deployment.

Exchange 2013 Sizing

Correctly sizing Exchange 2013 is one of the most effective ways of preventing performance problems. The Exchange 2013 Server Role Requirements Calculator is available here. The latest version is 9.1. To use this calculator correctly, you must consult the guidance in the Exchange 2013 Server Role Requirements Calculator and Sizing Exchange 2013 Deployments blog posts.

It's important to start with the calculator prior to purchasing and deploying your hardware. You should first determine your overall resource requirements based on the calculator results. You can use the calculator to input your organization's demands, and use the results for guidance on how to scale your hardware. The calculator doesn't tell you how many servers to use, but it allows you to estimate the impact of an Exchange workload on a given set of servers. You should experiment with different configurations to see how it affects performance, in order to meet the hardware and business needs specific to your environment.

To simplify deployments and get the best use of hardware, the Exchange product group recommends multi-role servers. Using multi-role severs gives you better availability at the Client Access server (CAS) layer, as there are more Client Access servers available to handle requests during a failure scenario. The key design consideration for Exchange 2013 is to utilize "smaller" commodity type servers (scaling out instead of scaling up). Design and testing were done with two socket computers containing up to 20 processor cores, with up to 96 gigabytes (GB) of RAM. If your hardware is larger than this recommendation, you should consider other options. For example, use that hardware for other needs and buy smaller servers for your Exchange 2013 environment. Or, consider virtualizing.

It's preferable to build more servers (scaling out) than it is to add resources to existing, larger servers (scaling up). Scaling out allows your environment to take advantage of the built-in high availability features in Exchange 2013. To understand why we recommend this configuration, review in detail the posts The Preferred Architecture and Site Resilience Impact on Availability.

The calculator doesn't take the following items into account:

  • Third-party products that are running on Exchange servers.
  • Products that interact with Exchange, including internally developed applications.

So, be sure to account for these items in your sizing. For example, Lync Server, third-party Exchange Web Services (EWS) applications, and ActiveSync devices can all significantly increase the CPU requirements per user. Use third-party product documentation for information about how it affects Exchange. We recommend creating a performance baseline for Exchange prior to implementing third-party solutions.

The following performance optimizations are recommended for your Exchange 2013 environment.

Power

Set BIOS to allow the operating system (OS) to manage power.

In the OS, turn on the High Performance power plan.

Processing

Turn off hyper-threading on physical Exchange servers. In virtual server environments, you can enable hyper-threading on the physical server, but each virtual server should only be allocated the required number of virtual CPUs. In other words, don't over-allocate virtual CPUs, and only use the physical processor core count for sizing calculations.

In Exchange Server 2013 Service Pack 1 or later, you can enable SSL offloading to help reduce CPU consumption by Client Access servers, but the complex configuration of SSL offloading may not be worth the benefit.

.NET Framework

Exchange version .NET Framework 4.6.2 .NET Framework 4.6.1 .NET Framework 4.5.2
Exchange 2013 CU16 X
Exchange 2013 CU15 X X1,2 X
Exchange 2013 CU13 and CU14 Xsup>1,2 X

1 .NET Framework 4.6.1 requires post-release fixes if you want to install it on a server running Exchange 2013 CU13. For more information. See Exchange 2013 prerequisites.

2 If you're upgrading to Exchange 2013 CU13, CU14, or CU15 from Exchange 2013 CU12 or earlier, we strongly recommend that you install Exchange 2013 CU13 before .NET Framework 4.6.1 and its related post-release fixes.

If you are unable to install .NET 4.5.2, refer to Microsoft Knowledge Base article 2995145 "Performance issues or delays when you connect to Exchange Server 2013 that's running in Windows Server." The fixes in that article were developed based on internal findings on Store Worker Process memory utilization. By applying these fixes, you'll reduce the overall memory consumption for all managed processes (including the store worker process) and you'll reduce the overall CPU time that's spent in .NET garbage collection.

Hot Fixes

The Exchange performance team recommends installing all of the following performance-related hot fixes.

Networking

With Exchange 2013, a single network adapter is recommended, as it's no longer necessary to split MAPI and replication networks. For more information, see Network requirements.

Use the default SNP offload settings where available, and make sure that RSS is enabled (the default setting in Windows Server 2012 and later). RSS will help scale CPU utilization, especially on 10 GbE.

Verify that the OS is not turning off the network card to save power.

Maintain up-to-date NIC drivers. Check with your vendor on a monthly basis for relevant driver updates.

Internet Information Services (IIS)

During installation, Exchange modifies some connection limits for IIS. No further tuning of IIS is recommended.

Avoid customizations whenever possible. Any change to web.config or registry keys can be overwritten by Exchange Cumulative Updates or Windows updates.

Storage

Guidelines for Exchange 2013 storage are available in Exchange 2013 storage configuration options.

Virtualization

Please review Requirements for hardware virtualization. Also, note that Exchange is not non-uniform memory access (NUMA) aware. Therefore, using the hardware manufacturer's default NUMA settings is recommended.

Active Directory

Monitor directory server performance, because Active Directory queries directly impact your Exchange deployment.

LDAP search time is a critical counter to measure in regards to Active Directory health. Monitor CPU on your domain controllers. CPU issues on the domain controllers will render as a performance hit on the Exchange servers.

Run the built in "Active Directory Diagnostics" on the Domain Controller in Performance Monitor located under "Data Collector Set" to help isolate the cause of domain controller performance issues.

Plan for enough RAM on Domain Controllers to be able cache the full AD database file.

We recommend deploying one Active Directory global catalog core for every eight mailbox cores that are handling active load (based on 64-bit global catalog cores).

Load Balancing

All Client Access servers should receive approximately the same number of incoming connections.

For all protocols, Exchange 2013 does not require session affinity between a given Client Access server and the load balancer.

A hardware or software load balancer should be used to manage all inbound traffic to Client Access servers. The selection of the target server can be determined with methods such as "round-robin," in which each inbound connection goes to the next target server in a circular list, or with "least connections," in which the load balancer sends each new connection to the server that has the fewest established connections at that time. These methods are detailed further in Load balancing. You should also consider the following items:

  • Round-robin has the problem of slow convergence with long-lived connections (like RPC/HTTP). As new computers are brought online, the balance of connections served across the target computers will take a very long time to converge.

  • With the "least connections" method, be mindful it's possible for a Client Access server to become overloaded and unresponsive during a Client Access server outage or during patching maintenance. In the context of Exchange performance, authentication is an expensive operation.

Due to a number of limitations with Windows Network Load Balancing (NLB) in an Exchange 2013 environment, detailed in Load balancing, we do not recommend using Windows NLB.

User and Database Distribution

Maintain a well-balanced distribution of users per database and active databases per server. Evenly distribute database disk space consumption as well as balance heavy users across all databases.

You must profile your user base in order to understand how they interact with Exchange (Devices, Outlook, and OWA) and the impact that those interactions will cause from a performance standpoint. Refer to the calculator blogs from Section 2 for a better understanding of how to profile per user Exchange usage.

Configure the DB copy activation preference and the "MaximumPreferredActiveDatabases" (per server) settings to maintain balance during a failover or switchover.

The RedistributeActiveDatabases.ps1 script will rebalance active databases across the DAG nodes.

Consider enforcing strict item count limits that match Microsoft 365 or Office 365. You can do this with the Set-Mailbox cmdlet and the information provided in Mailbox folder limits.

Pagefile

Set a maximum size for the pagefile of 32,778 MB if you're using more than 32 GB of RAM.

The pagefile should not be hosted on the same drive as Exchange database files or database log files.

It's imperative that you use a fixed size pagefile and not allow Windows to manage the size. Growing the page file can be a very performance-intensive task and can cause issues when Exchange is under stress.

If you need to get a full kernel dump, see Generate a kernel or complete crash dump.

Outlook Mode

Cached mode is recommended. To understand the benefit of using cached mode, see Choose between Cached Exchange Mode and Online Mode for Outlook 2013.

It's important to note that performance can be affected by both server add-ins and Outlook third-party add-ins. When using online mode, clients can expect some performance issues from third-party add-ins, high item counts, restricted views, the number of users accessing the mailbox, among other factors. Legacy clients can experience more impact by high item counts and performance than Outlook 2013 will.

If the primary reason that an organization has Outlook configured in online mode is for security concerns, consider using BitLocker instead.

Outlook 2013 offers a new "Sync Slider" feature to minimize the download time and the size of the OST file. For more information, see Configure Cached Exchange Mode in Outlook 2013.

Check monthly for Outlook clients updates that are supported in your environment.

Third-party software

As a best practice, uninstall or disable third-party software while troubleshooting Exchange performance. The following list contains the types of third-party software that Microsoft support has most often seen affecting Exchange 2013 performance.

  • Anti-virus solutions
  • Intrusion prevention software
  • Backup software
  • Auditing software, for both files and users
  • Archiving solutions