Wednesday, 20 November 2013

Limiting the number of Distribute Cache Instances

Problem:  Revieiwing the results of the SharePoint Health Anayser, I get an error relating to the Distributed cache "This Distributed Cache host may cause cache reliability problems".  I assumed unprovioning the service instance for distributed cache was correct.

Initial Hypothesis:  I use AutoSPInstaller to install my DTAP environments, once the environment got over 4 servers I saw this error.  I run a cleanup task that "Unprovisions" the "Distributed Cache" instances on all servers except my web front-end servers.  I still get the warning.  I read Steve Mann's post "It turns out that you actually need to remove the service from the servers that shouldn't run it - not stop it - actually remove it. This can be peformed using the SharePoint PowerShell cmdlet Remove-SPDistributedCacheServiceInstance" 
Resolution: You want to have 4 or less instances of the Distributed Cache Service.  I put these on my SharEPoint servers performing the Web Front End Role.
Run this PS to see where your Distributed Cache services are installed (running and unprovisioned):
$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"

Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName }


Post a Comment