Monday, February 29, 2016

Updating Distributed Logon Cache Settings on SharePoint Farm

As you may know, the distributed cache service on SharePoint 2013 helps improve the performance of many components such as,


  • Authentication
  • Newsfeeds
  • Security Trimming
  • Page load performances and etc...


There are different caches exist under the distributed cache service.

The Login Token Cache, which is named as DistributedLogonTokenCache stores security token issued by a Secure Token Service for use by any web server in the server farm. When any web server receives a request for a resource, can access the security token from the cache in order to authenticate and provide access to the resources.



You can use PowerShell for setting up certain configurations for the DistributedLoginTokenCache. The available properties include,


  • ChannelOpenTimeOut
  • MaxConnectionsToServer
  • MaxBufferPoolSize
  • MaxBufferSize
  • RequestTimeout


These values can be set and checked through the following PowerShell script.

Get access to the logon token cache by specifying the container type.
$logontokencache = Get-SPDistributedCacheClientSetting –ContainerType DistributedLogonTokenCache

Set timeout duration for a request being made to the cache in App Fabric
$logontokencache.requestTimeout = “4000”

Update the token cache configuration values
Set-SPDistributedCacheClientSetting –ContainerType DistributedLogonTokenCache $logontokencache

Likewise you can update any of the properties defined above. Also the other cache settings can be update in a similar way.

No comments:

Post a Comment