In short... here's the goal of what we're looking for when it comes to getting redundancy going...
Shamelessly "borrowed" from technet's site. |
Woohooo 3 servers... makin' progress... of course... we're not even touching the gateway services yet... and the session broker ends up becoming the weak link. What if it dies? ... evil phone-calls.
Lemme break down the steps in simple terms:
- The client does a DNS lookup for our server's name... in this example up above, "Farm1". In production... this will be a FQDN, publicly accessible.
- DNS server responds with a list of multiple answers... one for each "session host" server.
- The client randomly picks one of the servers from the list and connects to it. If that server is unavailable... the client will pick another one from the list.
- The randomly selected server... talks to the session broker behind the scenes & asks where the client needs to go.
- The session responds with where the client needs to go.
- The Session host tells the client where to connect...
- The client connects to the specific server...
- Finally, the session host updates the session broker with it's new connection.
Ok... lets add a few more pieces to this puzzle.
Those purple servers are Gateway Servers... If you look at the previous diagrams... they use private IP addresses... the job of the gateway server... is to securely bridge that gap between the public internet... and the private network. Why 2? .... and why doesn't one have any lines connected to it? ... well... round robin DNS is round robin DNS... int his particular example... the random server it found was the top one. The client's connection sticks with that server. Had the client randomly picked the other server... the lines would all point to the other server.
In order for this to work... the client needs an additional config option set to use the gateway servers. Not really a big deal as you'll probably end up deploying a .rdp file or setting up a portal to your users. When a gateway is thrown into the mix, the clients actually use a HTTPS connection rather than the standard RDP (tcp 3389) connection... and add a *needed* additional layer of security.
So... the process changes a bit.
- Client does a DNS lookup for the gateway server.
- Client gets multiple servers to connect to... randomly picks one...
- Client connects to random gateway server using basic HTTPS authentication... and start a RPC over HTTP session.
- The Gateway Server does another round-robin DNS lookup for the Session Host Server.
- List of Session host servers is returned... and a random one is picked...
- The Gateway Server passes the RPC session over to the Session Host server.
And now, for the final piece. That connection broker represents a single point of failure. We're trying to build a setup with minimal points of failure. So... the "Microsoft Answer" ... is to throw yet another server into the mix as a fail over.
So... there we have the "Microsoft" plan. 6 servers... to go from a single session host to adding a 2nd session host to the mix. Admittedly, this is a great model for scalability to a HUGE deployment. Most small businesses won't really need this level of scalability. A single server can easily host 20-50 sessions... or even more with the right hardware or moderate to light weight applications.
In my situation and probably many others... I can't justify that sort of expense when more than half of those servers will be sitting relatively idle... So... I set out to consolidate the roles each server performs... while still keeping the redundancy and all the benefits of each role.
12:54AM .... and tomorrow is another day. I'll layout how I consolidated each roll into 2 servers tomorrow.
No comments:
Post a Comment