Reader small image

You're reading from  Mastering Windows Server 2022 - Fourth Edition

Product typeBook
Published inMay 2023
PublisherPackt
ISBN-139781837634507
Edition4th Edition
Right arrow
Author (1)
Jordan Krause
Jordan Krause
author image
Jordan Krause

Jordan Krause has been an IT professional for more than 20 years and has received 9 Microsoft MVP awards for his work with Microsoft server and networking technologies. One of the world's first experts on Microsoft DirectAccess, he has a passion for helping companies find the best ways to enable a remote workforce. Committed to continuous learning, Jordan holds certifications as an MCSE, MCSA, and MCITP Enterprise Administrator, and has authored numerous books on Microsoft technologies. Jordan lives in beautiful West Michigan (USA), but works daily with companies around the world.
Read more about Jordan Krause

Right arrow

Redundancy in Windows Server 2022

Multiply that by two. This is a phrase I hear all the time when planning server deployments for work. I’m sure you have as well. Any time you are rolling out new technology, you want to plan that rollout very carefully. Figure out what servers you need, where they need to be placed, and how the networking needs to be configured for those guys. Once the planning is done, order two of everything, in case one breaks. We live in a world of always-on technology. Services going down is unacceptable, particularly if we are hosting cloud or private cloud services. Any application or service that our users depend on to get their work done is mission-critical and needs 100% uptime, or darn close to it. The problem with redundancy is that it’s much easier to talk the talk than to walk the walk. Maybe one day we will be blessed with a magic “Press here to make this server redundant” button – but today is not that day. We need...

Network Load Balancing (NLB)

Often, when I hear people discussing redundancy on their servers, the conversation includes many instances of the word cluster, such as, “If we set up a cluster to provide redundancy for those servers...” or “Our main website is running on a cluster...” or “This situation is a real cluster…” (oh wait, that is something else entirely). While it is great that there is some form of resiliency being used on the systems to which these conversations pertain, it is often the case that clustering is not actually involved anywhere. When we boil down the particulars of how their systems are configured, we discover that it is NLB doing this work for them. We will discuss real clustering further along in this chapter, but first I wanted to start with the more common approach to making many services redundant. NLB distributes traffic at the TCP/IP level, meaning that the server operating systems themselves are not completely...

Configuring a load-balanced website

Enough talk; it’s time to set this up for ourselves and give it a try. I have two web servers running on my lab network, WEB1 and WEB2. They both use IIS to host an intranet website. My goal is to provide my users with a single DNS record for them to access, but have all of that traffic split between the two servers with some real load balancing. Follow along as we set up this scenario.

Enabling NLB

First things first, we need to make sure that WEB1 and WEB2 are prepared to do NLB because it is not installed by default. NLB is a feature available in Windows Server 2022, and you add it just like any other role or feature, by running through the Add roles and features wizard. Add this feature on all of the servers that you want to be part of the NLB array:

Graphical user interface, text, application  Description automatically generated

Figure 12.1: Adding NLB to your servers

Enabling MAC address spoofing on VMs

Remember when we talked about unicast NLB and how the physical MAC address of the NIC...

Failover clustering

We have established that NLB is a great solution for stateless applications, with a prime example being websites that you want to make highly available. What about other server roles or functions that you want to make redundant? Well, the opposite of stateless is stateful, so how about giving high availability to stateful pieces of technology?

Failover clustering provides this level of capability and can be used in cases where the nodes within the cluster are accessing shared data. This is a key factor in the way failover clustering is designed. The storage used by the cluster nodes must be shared and accessible by each node that needs it. There are many different roles and services that can take advantage of failover clustering, but there are four specific technologies that seem to make up the majority of clusters running in datacenters today: Hyper-V, file services, Exchange, and SQL. If you are working with any of these technologies – and chances...

Clustering tiers

An overhead concept to failover clustering that is important to understand is the different tiers at which clustering can benefit you. There are two levels upon which you can use clustering: you can take an either/or approach and use just one of these levels of failover clustering, or you can combine both to really impress your high-availability friends.

Application-layer clustering

Clustering at the application level typically involves installing failover clustering onto VMs. Using VMs is not a firm requirement but is the most common installation path. You can mix and match VMs with physical servers in a clustering environment, as long as each server meets the installation criteria. This application mode of clustering is useful when you have a particular service or role running within the operating system that you want to make redundant. Think of this as more of a microclustering capability, where you are really digging in and making one specific component...

Setting up a failover cluster

We are going to take a few minutes to set up a small cluster of servers so that you can see the management tools and the places that have to be visited to accomplish this. I have now backed out all of the NLB config on my WEB1 and WEB2 servers that we set up earlier so that they are just simple web servers at the moment, once again, with no redundancy between them. Let’s set up our first failover cluster and add both of these servers into that cluster.

Building the servers

We have two servers already running with Windows Server 2022 installed. Nothing special has been configured on these servers, but I have added the File Server role to both of them because, eventually, I will utilize these as a cluster of file servers. The key point here is that you should have the servers as identical as possible, with the roles already installed that you intend to make use of within the cluster.

One other note during the building phase: if possible...

Clustering improvements in Windows Server 2022

The clustering feature has been around for a while and every new release of Windows Server comes with some improvements and new features, but they often fly under the radar. There were some good changes in 2019, and more followed in 2022. Some of these improvements wrapped into Server 2022 directly from Azure Stack HCI, bringing cloud capability back into our datacenters. Let’s review some of those so you can see the ways that Microsoft continues to be committed to improving our datacenter resiliency.

AutoSites

Many administrators don’t even pay attention to Active Directory Sites and Services because many only have one site to deal with, but even if you have multiple physical sites that include servers, it is often true that most Windows Server technology will work just fine even if you leave all of your servers plugged into the default AD site. Failover clustering is one of the roles that can now take advantage...

Storage Replica (SR)

SR is a modern way to synchronize data between servers. It is a data-replication technology that provides the ability for block-level data replication between servers, even across different physical sites. SR is a type of redundancy that we hadn’t seen in a Microsoft platform prior to Windows Server 2016; in the past, we had to rely on third-party tools for this kind of capability. SR is also important to discuss on the heels of failover clustering because SR is the secret sauce that enables multi-site failover clustering to happen.

When you want to host cluster nodes in multiple physical locations, you need a way to make sure that the data used by those cluster nodes is synced continuously, so that a failover is actually possible. This data flow is provided by SR.

One of the neat data points about SR is that it finally allows a single-vendor solution, that vendor being Microsoft of course, to provide the end-to-end technology and software for...

Storage Spaces Direct (S2D)

S2D is a clustering technology, but I list it here separate from general failover clustering because S2D is a core component of the software-defined data center (SDDC) and has had so much focus on improvements over the past few years that it really is in a category of its own. As a forewarning, I am in no way going to be able to cover the entirety of Storage Spaces Direct in this chapter; it really deserves its own book. There are links at the end of this section that will bring you into the swaths of documentation that accompany S2D.

In a nutshell, S2D is a way to build an extremely efficient and redundant centralized, network-based storage platform entirely from Windows Server. While serving the same general purpose (file storage) as a traditional NAS or SAN device, S2D takes an entirely different approach in that it does not require specialized hardware, nor special cables or connectivity between the nodes of the S2D cluster.

To build S2D, all...

Summary

Redundancy is a critical component in the way that we plan infrastructure and build servers in today’s world. Windows Server 2022 has some powerful capabilities built right into it that you can utilize in your own environments, starting today! I hope that by gleaning a little more information about both NLB and failover clustering, you will be able to expand the capabilities of your organization by employing these techniques and stretching the limits of your service uptime.

Even for a small-medium business, there are some great replication options in Windows Server, made possible with a limited set of servers. You could use Storage Replica to replace many other third-party options that currently exist in these environments, giving you redundant file servers in a quick-and-easy fashion. For any enterprise-class organization that hasn’t tested the waters with S2D yet, what’s stopping you? Let’s get serious about resiliency for your Hyper-V infrastructure...

Questions

  1. Which technology is more appropriate for making web server traffic redundant – Network Load Balancing or failover clustering?
  2. Is website traffic generally stateful or stateless?
  3. In Network Load Balancing, what do the acronyms DIP and VIP stand for?
  4. What are the three NLB modes?
  5. In Windows Server 2022, is Network Load Balancing a role or a feature?
  6. What roles are most often used with failover clustering?
  7. What type of small device can now be used as a cluster quorum witness (this is brand new as of Server 2019)?
  8. True or False? Storage Spaces Direct requires the use of SSD hard drives.
  9. What is the difference between Storage Spaces, and Storage Spaces Direct?

Join our community on Discord

Join our community’s Discord space for discussions with the author and other readers:

https://packt.link/SecNet

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Mastering Windows Server 2022 - Fourth Edition
Published in: May 2023Publisher: PacktISBN-13: 9781837634507
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Jordan Krause

Jordan Krause has been an IT professional for more than 20 years and has received 9 Microsoft MVP awards for his work with Microsoft server and networking technologies. One of the world's first experts on Microsoft DirectAccess, he has a passion for helping companies find the best ways to enable a remote workforce. Committed to continuous learning, Jordan holds certifications as an MCSE, MCSA, and MCITP Enterprise Administrator, and has authored numerous books on Microsoft technologies. Jordan lives in beautiful West Michigan (USA), but works daily with companies around the world.
Read more about Jordan Krause