Distributed Cache, re-blog-gurgitation, good posts.

This post is just a collection of some great resources on distributed cache.  I didn’t write them and am just re-blogurgitating.

These are my favorite posts on the subject:

 

How to patch the Distributed Cache in SharePoint 2013 – Wictor Wilén

This blog post lists out the high level steps and goes into nice detail on how to perform patching of the distributed cache.

  1. Shut down the service instance on one machine
  2. Patch AppFabric 1.1
  3. Post-patch operations
  4. Start the service instance
  5. Restart from 1 on the next machine   ” – Wictor Wilén – SharePoint MCA, MCSM, MCM and MVP

 

 

 

 

The Playbook Imperative and Changing the Distributed Cache Service Identity – Spencer Harbar, MCA, MCM, and MVP

This blog post lists out, in great detail, the art of changing the service account (identity) that Distributed Cache uses.

$farm = Get-SPFarm
$cacheService = $farm.Services | where {$_.Name -eq “AppFabricCachingService”}
$accnt = Get-SPManagedAccount -Identity domain_name\user_name
$cacheService.ProcessIdentity.CurrentIdentityType = “SpecificUser”
$cacheService.ProcessIdentity.ManagedAccount = $accnt
$cacheService.ProcessIdentity.Update()
$cacheService.ProcessIdentity.Deploy() ” -Spencer Harbar

 

 

 

SharePoint 2013 Distributed Cache service – Jeremy Taylor, MCT, MCSE, CEH

This blog post is an excellent, super thorough, write-up on Distributed Cache

 

Here’s a powershell that set’s the garbage collection:

$xmlDoc = [xml](Get-Content “C:\Program Files\AppFabric 1.1 for Windows Server\DistributedCacheService.exe.config”)

$createAppElement = $xmlDoc.CreateElement(“appSettings”)

$appElement = $xmlDoc.configuration.AppendChild($createAppElement)

$createAddElement = $xmldoc.CreateElement(“add”)

$addElement = $appElement.AppendChild($createAddElement)

$addElement.SetAttribute(“key”, “backgroundGC”)

$addElement.SetAttribute(“value”, “true”)

$xmlDoc.Save(“C:\Program Files\AppFabric 1.1 for Windows Server\DistributedCacheService.exe.config”)

# Adds the following text to the configuration file

# <appSettings>

# <add key=”backgroundGC” value=”true” />

# </appSettings> ” – Vlad Catrinsecu and Trevor Seward – Deploying SharePoint 2016

 

The configuration file named, DistributedCacheService.exe.config,  is located here:

%ProgramFiles%\AppFabric 1.1 for Windows Server

Manage the Distributed Cache service in SharePoint Server 2013 – Microsoft Technet

This post has a great visio, you can download, that covers how to manage the Distributed cache,

where not to run it, which services compete with it, etc.

Planning feeds – Microsoft Technet

This post has good info about what feeds are and how they integrate with search and user profile service.  It explains the difference between dedicated and collocated mode, and more.

Want a script to configure garbage collection?  Click here




Happy SharePointing!!




Shameless Self Promotion – check out my book

 

 

In keeping with the Random thoughts theme – – Here’s a picture of how to start the cachecluster

distributedcache