Lync Server 2013–No Users Homed on Front-End

It is funny how you find odd behaviors and then try to figure out what is wrong or why something doesn’t behave like it should.

This situation all started with one of Pat Richard’s famous PowerShell one-liners. Pat, for those that don’t know him, is a wealth of information, and he has helped me out on many occasions. In this case, I was perusing his one-liners and saw one that I liked. However, I didn’t like the output and wanted to use it in a bit of a different way than his example. What did I do? Well, I took a perfectly good one-liner and made it into a mutli-line PowerShell script.

CLS

$CsServers = (Get-CsComputer | where {$_.identity -ilike “fe*” -and $_.pool -ilike “pool13*”}).identity

Write-Host ” “

Write-Host “Active Lync Server 2013 Connections”

Write-Host “———————————–“

ForEach ($cs in $CsServers) {

                # Write-Host Checking Counters on $cs

                $EndPoints = (Get-Counter “\LS:USrv – Endpoint Cache\USrv – Active Registered Endpoints” -ComputerName $cs | select -expand CounterSamples).CookedValue

                $RegUsers = (Get-Counter “\LS:USrv – Endpoint Cache\USrv – Active Registered Users” -ComputerName $cs | select -expand CounterSamples).CookedValue

                Write-Host $cs `t “EndPoints: $EndPoints” `t “Users: $RegUsers”

}

What was interesting is what I found. My pilot users were not spreading across my pool like I thought they would. While I guess that the numbers might even out more as I add users, the “0” really bothered me.

fe1.infrastructurehelp.com          EndPoints: 17   Users: 9

fe2.infrastructurehelp.com          EndPoints: 4    Users: 4

fe3.infrastructurehelp.com          EndPoints: 19   Users: 15

fe4.infrastructurehelp.com          EndPoints: 5    Users: 5

fe5.infrastructurehelp.com          EndPoints: 0    Users: 0

At first, I was thinking, yep, just a statistical anomaly. I talked to one of my colleague, Pete Holmes, and he thought it was strange, too, and he started digging into it. Pete tested the impact of changing his SIP URI to change the impact of the algorithm as described here: http://blogs.technet.com/b/nexthop/archive/2011/05/25/dns-load-balancing-in-lync-server-2010.aspx The Blog entry says that the “registrar assignment is calculated by a hash value of the user’s SIP URI.” The idea was that changing the SIP URI would result in him getting placed on a different Front-End server. No matter how he changed his SIP URI, it didn’t put him on fe5. Setting the client connection settings to force the client to connect to fe5 resulted in it being properly redirected to the proper front-end server, so it appeared that the server was working correctly. Nothing was found in Event Viewer pointing to any issue, either. Basically, the server looked like it was broken and looked like it was fine all at the same time. Schrödinger’s Front-End Server?

We talked about it for a bit, and I thought it might be that the routing groups are set up so that FE5 is a secondary/tertiary for all of the routing groups. That didn’t sound like it was possible, again, it sounded like a statistical anomaly. No matter how I looked at it, it just didn’t seem right. Pete checked the Fabric, and there it was. Highlighted below, it was clear that none of the routing groups were primary for fe5.

PS > Get-CsPoolFabricState -poolfqdn pool13.infrastructurehelp.com

Replica Instances for MCUFactory Service

    Address: fe1.infrastructurehelp.com – Primary: 1 Secondary: 3

    Address: fe2.infrastructurehelp.com – Primary: 1 Secondary: 3

    Address: fe3.infrastructurehelp.com – Primary: 1 Secondary: 3

    Address: fe4.infrastructurehelp.com – Primary: 1 Secondary: 3

    Address: fe5.infrastructurehelp.com – Primary: 2 Secondary: 0

Replica Instances for ConferenceDirectory Service

    Address: fe1.infrastructurehelp.com – Primary: 1 Secondary: 0

    Address: fe2.infrastructurehelp.com – Primary: 0 Secondary: 1

    Address: fe3.infrastructurehelp.com – Primary: 1 Secondary: 0

    Address: fe4.infrastructurehelp.com – Primary: 0 Secondary: 1

    Address: fe5.infrastructurehelp.com – Primary: 0 Secondary: 2

Replica Instances for Routing Service

    Address: fe1.infrastructurehelp.com – Primary: 9 Secondary: 17

        Local Groups: Primary: 2 Secondary: 3

        Remote Groups: Primary: 7 Secondary: 14

    Address: fe2.infrastructurehelp.com – Primary: 8 Secondary: 17

        Local Groups: Primary: 1 Secondary: 3

        Remote Groups: Primary: 7 Secondary: 14

    Address: fe3.infrastructurehelp.com – Primary: 10 Secondary: 16

        Local Groups: Primary: 3 Secondary: 2

        Remote Groups: Primary: 7 Secondary: 14

    Address: fe4.infrastructurehelp.com – Primary: 8 Secondary: 16

        Local Groups: Primary: 1 Secondary: 2

        Remote Groups: Primary: 7 Secondary: 14

    Address: fe5.infrastructurehelp.com – Primary: 7 Secondary: 18

        Local Groups: Primary: 0 Secondary: 4

        Remote Groups: Primary: 7 Secondary: 14

Replica Instances for LYSS Service

    Address: fe1.infrastructurehelp.com – Primary: 9 Secondary: 17

    Address: fe2.infrastructurehelp.com – Primary: 8 Secondary: 17

    Address: fe3.infrastructurehelp.com – Primary: 10 Secondary: 16

    Address: fe4.infrastructurehelp.com – Primary: 8 Secondary: 16

    Address: fe5.infrastructurehelp.com – Primary: 7 Secondary: 18

Global Service Count Summary:

Fqdn: fe1.infrastructurehelp.com – Primary: 20 Secondary: 37

Fqdn: fe2.infrastructurehelp.com – Primary: 17 Secondary: 38

Fqdn: fe3.infrastructurehelp.com – Primary: 22 Secondary: 35

Fqdn: fe4.infrastructurehelp.com – Primary: 17 Secondary: 36

Fqdn: fe5.infrastructurehelp.com – Primary: 16 Secondary: 38

How do you fix it? Don’t worry about it, it will take care of itself over time.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s