SlideShare a Scribd company logo
© Hexaware Technologies. All rights reserved. www.hexaware.com© Hexaware Technologies. All rights reserved.
Passionate
Employees
Innovative
Services
Delighted
Customers
Harnessing the Power of
SharePoint 2013’s
Distributed Cache Service
2
© Hexaware Technologies. All rights reserved. | www.hexaware.com
What is Distributed Cache?
 A distributed cache is an extension of the
traditional concept of cache used in a single
locale.
 A distributed cache may span multiple servers so
that it can grow in size and in transactional
capacity.
3
© Hexaware Technologies. All rights reserved. | www.hexaware.com
SharePoint 2013 Distributed Cache
The Distributed Cache (DC) service is built on top of the Windows Server AppFabric Cache.
The Distributed Cache (DC) service provides in-memory caching services to several
features in SharePoint 2013 as listed below
Authentication
Security Trimming
Page load performance
Social Features, Newsfeeds
4
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Architectural Highlights
 In SharePoint 2013, it creates session token
during user login for any of the user
authentication method used, either windows
authentication or forms authentication or SAML
token by external identity provider.
 Prior to SharePoint 2013, the session token
cache was stored at server-local cache. In
SharePoint 2013, session security tokens are
stored centrally in a Distributed Cache Service’s
Logon Token Cache. This architectural
improvement, made tokens accessible across
the farm, to all WFEs.
5
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Architectural Highlights
 User Profile Service Application (UPA) Proxies retrieve configuration details from their
associated UPAs & databases; and cache those details in several per-process in-
memory cache and all such cache information is resident in server memory. Following
Settings are stored in cache
 URLs for MySite portals
 Following limits
 UPA sync configuration (e.g. whether to sync inactive users)
 Newsfeed settings
 Activity Feed
6
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Architectural Highlights
 Prior to SP-2013 ViewState data was stored at the server end, which lead to problem
that subsequent requests would have to be routed to the same server where ViewState
was originally cached. This problem was solved in SP-2013 by storing as key pair value
of GUID and ViewState to distributed ViewState cache.
7
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Architectural Highlights
 For user profiles, it enables everything to be
“in sync” and have minimal visible POSTs
back to the server. As the distributed cache
is resident in server memory the browser
have to post back to Distributed Cache
Service. In background data is persisted to
database from the distributed cache to the
database. During post back browser doesn't
have to wait to get data persisted in
database. This drastically improves page
response performance.
8
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Distributed Caching - Installation
 SharePoint 2013’s prerequisites installer takes
care of installing the Windows Server AppFabric
and configuring it for cache operations on your
behalf.
 There is no initial action required on the part of
administrators to get the Distributed Cache
service installed and operational in their
SharePoint 2013 environment.
9
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Default DC Configuration
 Default Memory allocation to DC Service is 10% of total physical memory.
 From that it uses half of that memory allocation for data storage i.e. it uses 5% of cache
size.
 The other half of that memory allocation is used for memory management overhead.
 When the cached data grows, the DC service uses the entire 10% of the allocated
memory.
10
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC configuration for small farm
Important Note: DC Service has
to be turned ON all the WFE
servers.
Distributed Cache is
on all WFE Servers
11
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC configuration for medium farm (10,000+ users)
1. It’s recommended to have dedicated DC Server allocated to the SharePoint
Farm.
2. Use the following method to calculate how much memory can be assigned to
the DC service.
 Determine the total physical memory on the server. For this example, we
will use 16 GB as the total physical memory available on the server
 Reserve 2 GB of memory for other processes and services that are
running on the cache host. i.e. 16 GB – 2 GB = 14 GB. This remaining
memory is allocated to the Distributed Cache service
 Take half of the remaining memory, and convert it to MB. For example,
14 GB/2 = 7 GB or 7000 MB. This is the cache size of the DC service
12
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC configuration for medium farm (10,000+ users)
APP 03 is made
dedicated Distributed
Cache Server
13
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Wrongly configured DC…
Page render time around 9-10 seconds!!
14
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC Configured Correctly..
After implementing the Dedicated DC service to a SharePoint farm and correctly updating
the memory allocation the page rendered time improved drastically!
Page render time NOT more than 2 seconds..
15
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC Configuration - Benefits
 As it creates unique session for any of the
user authentication technique like window
authentication or forms authentication or
external identity provider, in a subsequent
calls, it bypasses the need to redirect to
external identity providers and additional
user prompts, in a way avoiding evident
response time delay.
 Creation of unique session token and
caching the token avoids the multiple steps
of regeneration of session token and saving
the time to some extent.
16
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC Configuration - Benefits
 Session tokens are centralized cached and
webserver can trace token using windows
identity or session cookie, the user can access
any of the webservers without the need to re-
login.
 As ViewState data is stored in Distributed Cache, the problem
related to request routing is resolved and page response time
is improved to a large extent
17
© Hexaware Technologies. All rights reserved. | www.hexaware.com
DC Configuration - Benefits
 Social features like URLs for MySite
portals, Following limits, UPA sync
configuration, Newsfeed settings, Activity
Feed are stored in Distributed cache and
configured to Sync all the User Profile
Applications (UPAs). Also during POST
back action, browser have to POST back to
DC and need not wait till data gets
persisted in database. This improved the
page performance drastically.
18
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenges & Tips
Following slides covers some of the challenges faced during
real life implementations of Distributed Caching Service in a
medium farm of about 10000 users.
All the tips provided here are actual resolutions provide by our
“Hexaware SharePoint Expert” team
19
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenge # 1
You try to interact with the cache service and find that the service is not functioning
correctly.
Tip: Restarting the cluster is a simple first step that will often clear up any issues. Run
the Command Restart-CacheCluster
20
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenge # 2
You get an error related to the registry.
Tip: It usually means that the host you are working with is not part of a cluster and it
sneeds to be added.
Run the Add-SPDistributedCacheServiceInstance command to add.
21
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenge # 3
You try to add a cache host to the cluster and you get error ”TCP port already in use”
22
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenge # 4
You try to remove a cache host from the cluster and you get error “cacheHostInfo is
null”.
23
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Tip for Challenge #3 & #4
Error showed in Challenge#3 & #4 usually means that the server was
previously part of a cluster and wasn’t added or removed correctly.
To resolve the issue execute following commands
• $instanceName ="SPDistributedCacheService
Name=AppFabricCachingService"
• $serviceInstance = Get-SPServiceInstance | ?
{($_.service.tostring()) -eq $instanceName –and ($_.server.name)
-eq "<Your Server Name>"}
• $serviceInstance.Delete()
• Add-SPDistributedCacheServiceInstance
24
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Challenge # 5
There was a medium farm with dedicated DC server and was facing page performance
issue. When traced the ULS logs, found following error.
Unexpected error occurred in method 'GetObject' , usage 'Distributed Logon Token Cache'
– Exception crosoft.ApplicationServer.Caching.DataCacheException:
ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry
later. (One or more specified cache servers are unavailable, which could be caused by
busy network or servers. For on-premises cache clusters, also verify the following
conditions. Ensure that security permission has been granted for this client account, and
check that the AppFabric Caching Service is allowed through the firewall on all cache hosts.
Also the MaxBufferSize on the server must be greater than or equal to the serialized object
size sent from the client.
25
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Tip for Challenge #5
1. Update default DC parameters
2. Change parameter values for Security Token Service followed by IISRESET on all
servers in the.
 Set MaxServiceTokenCacfarmheItems to 1500
 Set MaxLogonTokenCacheItems to 1500
DC Parameters Default Value Recommended
MaxBufferPoolSize 268435456 1073741824
MaxBufferSize 8388608 33554432
ChannelOpenTimeOut 20 3000
RequestTimeout 20 3000
MaxConnectionsToServer 2 100
26
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Be Aware
“The Distributed Cache service can end up
in a non-functioning or unrecoverable state
if you do not follow the procedures. In
extreme scenarios, you might have to
rebuild the server farm“
27
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Best Thing..
If you set DC Configurations Right then
your SharePoint Farm will have an
advantage of Highest Performance and
Improved Scalability…
Passionate
Employees
Innovative
Services
Delighted
Customers
© Hexaware Technologies. All rights reserved. | www.hexaware.com
Thank you

More Related Content

PDF
“A Practitioner’s View” on the latest trends and information on BI/ DW techno...
PDF
SNIA white paper-sw defined storage
PDF
Esm 101 5.2
PPTX
Effective Integration of SAP MDM & BODS
PDF
Server and Asset Management System Project Proposal
PDF
SharePoint based helpdesk, ticketing and case management solution
PDF
Configuration and Deployment Guide For Memcached on Intel® Architecture
PDF
SAP BODS Designer PDF
“A Practitioner’s View” on the latest trends and information on BI/ DW techno...
SNIA white paper-sw defined storage
Esm 101 5.2
Effective Integration of SAP MDM & BODS
Server and Asset Management System Project Proposal
SharePoint based helpdesk, ticketing and case management solution
Configuration and Deployment Guide For Memcached on Intel® Architecture
SAP BODS Designer PDF

What's hot (19)

PDF
Parallels
PDF
Whitepaper: Continuous Compliance in SAP Environments - Happiest Minds
PDF
Continuous Compliance-in-Sap-Environments
PPT
Gp Installation Presentation
PDF
Pivotal gem fire_wp_hardest-problems-data-management_053013
 
PDF
Governance, Risk, and Compliance Management: Realizing the Value of Cross-Ent...
PDF
Rethink Storage: Transform the Data Center with EMC ViPR Software-Defined Sto...
 
PDF
The Whats, Whys and Hows of Database as a Service
PDF
Introduccion a SQL Server Master Data Services
PDF
Informatica Tutorial For Beginners | Informatica Powercenter Tutorial | Edureka
PDF
Sql server 2012_licensing_reference_guide
PDF
Dokumen.tips edb postgres-failover-manager-guide-get-failover-manager-require...
PDF
Hp smart cache technology c03641668
PPT
Gssa datacenter solutions
PDF
White Paper: Rethink Storage: Transform the Data Center with EMC ViPR Softwar...
 
PDF
Adaptive processing servers for BO
PDF
Microsoft master data services mds overview
PDF
Microsoft India - System Center Virtual Machine Manager 2008 Whitepaper
PDF
Hyperconverged Solution For Retail and Hospitality
Parallels
Whitepaper: Continuous Compliance in SAP Environments - Happiest Minds
Continuous Compliance-in-Sap-Environments
Gp Installation Presentation
Pivotal gem fire_wp_hardest-problems-data-management_053013
 
Governance, Risk, and Compliance Management: Realizing the Value of Cross-Ent...
Rethink Storage: Transform the Data Center with EMC ViPR Software-Defined Sto...
 
The Whats, Whys and Hows of Database as a Service
Introduccion a SQL Server Master Data Services
Informatica Tutorial For Beginners | Informatica Powercenter Tutorial | Edureka
Sql server 2012_licensing_reference_guide
Dokumen.tips edb postgres-failover-manager-guide-get-failover-manager-require...
Hp smart cache technology c03641668
Gssa datacenter solutions
White Paper: Rethink Storage: Transform the Data Center with EMC ViPR Softwar...
 
Adaptive processing servers for BO
Microsoft master data services mds overview
Microsoft India - System Center Virtual Machine Manager 2008 Whitepaper
Hyperconverged Solution For Retail and Hospitality
Ad

Similar to Share point 2013’s distributed cache service 6.0 (1) (20)

PPTX
Share point 2013 distributed cache
PDF
Best practices para publicar un WebSite con SharePoint Server 2010
PPTX
Training Webinar: Enterprise application performance with distributed caching
PDF
SharePoint Saturday The Conference 2011 - SP2010 Performance
PDF
SharePoint Saturday San Antonio: SharePoint 2010 Performance
PDF
Velocity - Edge UG
PPTX
SharePoint 2013 Performance and Capacity Management
PDF
SharePoint 2010 Boost your farm performance!
PPTX
Sharepoint Performance - part 2
PPTX
Scale Your Data Tier with Windows Server AppFabric
PDF
The Need For Speed - NxtGen Cambridge
PPTX
Deep Dive into SharePoint Topologies and Server Architecture for SharePoint 2013
PDF
Azure appfabric caching intro and tips
PPTX
Exploring App fabric
PDF
Boost the Performance of SharePoint Today!
PDF
The Need for Speed - EpiCenter 2010
PDF
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010
PDF
Tuning Your SharePoint Environment
PPTX
Windows Server AppFabric Cache
PDF
The Need For Speed - NEBytes
Share point 2013 distributed cache
Best practices para publicar un WebSite con SharePoint Server 2010
Training Webinar: Enterprise application performance with distributed caching
SharePoint Saturday The Conference 2011 - SP2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 Performance
Velocity - Edge UG
SharePoint 2013 Performance and Capacity Management
SharePoint 2010 Boost your farm performance!
Sharepoint Performance - part 2
Scale Your Data Tier with Windows Server AppFabric
The Need For Speed - NxtGen Cambridge
Deep Dive into SharePoint Topologies and Server Architecture for SharePoint 2013
Azure appfabric caching intro and tips
Exploring App fabric
Boost the Performance of SharePoint Today!
The Need for Speed - EpiCenter 2010
Phil Pursglove: Velocity, the Need for Speed - epicenter 2010
Tuning Your SharePoint Environment
Windows Server AppFabric Cache
The Need For Speed - NEBytes
Ad

More from Hexaware Technologies (11)

PDF
Current state of outsourcing relationships the watermelon effect
PDF
Detect and Prevent Insurance fraud using Hexaware’s iFraudEngine
PDF
Gets future ready with peoplesoft hcm 9.1 upgrade
PDF
Sap Business Implementation
PDF
Agile testing solution
PDF
Middle office outsourcing in the investment management world
PDF
Banking and financial services experience, expertise, execution & excellence
PDF
Oracle applications support and maintenance services
PDF
Leading global bank reduces costs, increases scalability
PDF
Enterprise Data Management Assessment
PDF
Basel II ERM Implementation
Current state of outsourcing relationships the watermelon effect
Detect and Prevent Insurance fraud using Hexaware’s iFraudEngine
Gets future ready with peoplesoft hcm 9.1 upgrade
Sap Business Implementation
Agile testing solution
Middle office outsourcing in the investment management world
Banking and financial services experience, expertise, execution & excellence
Oracle applications support and maintenance services
Leading global bank reduces costs, increases scalability
Enterprise Data Management Assessment
Basel II ERM Implementation

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MYSQL Presentation for SQL database connectivity
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
The AUB Centre for AI in Media Proposal.docx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
NewMind AI Weekly Chronicles - August'25-Week II
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding

Share point 2013’s distributed cache service 6.0 (1)

  • 1. © Hexaware Technologies. All rights reserved. www.hexaware.com© Hexaware Technologies. All rights reserved. Passionate Employees Innovative Services Delighted Customers Harnessing the Power of SharePoint 2013’s Distributed Cache Service
  • 2. 2 © Hexaware Technologies. All rights reserved. | www.hexaware.com What is Distributed Cache?  A distributed cache is an extension of the traditional concept of cache used in a single locale.  A distributed cache may span multiple servers so that it can grow in size and in transactional capacity.
  • 3. 3 © Hexaware Technologies. All rights reserved. | www.hexaware.com SharePoint 2013 Distributed Cache The Distributed Cache (DC) service is built on top of the Windows Server AppFabric Cache. The Distributed Cache (DC) service provides in-memory caching services to several features in SharePoint 2013 as listed below Authentication Security Trimming Page load performance Social Features, Newsfeeds
  • 4. 4 © Hexaware Technologies. All rights reserved. | www.hexaware.com Architectural Highlights  In SharePoint 2013, it creates session token during user login for any of the user authentication method used, either windows authentication or forms authentication or SAML token by external identity provider.  Prior to SharePoint 2013, the session token cache was stored at server-local cache. In SharePoint 2013, session security tokens are stored centrally in a Distributed Cache Service’s Logon Token Cache. This architectural improvement, made tokens accessible across the farm, to all WFEs.
  • 5. 5 © Hexaware Technologies. All rights reserved. | www.hexaware.com Architectural Highlights  User Profile Service Application (UPA) Proxies retrieve configuration details from their associated UPAs & databases; and cache those details in several per-process in- memory cache and all such cache information is resident in server memory. Following Settings are stored in cache  URLs for MySite portals  Following limits  UPA sync configuration (e.g. whether to sync inactive users)  Newsfeed settings  Activity Feed
  • 6. 6 © Hexaware Technologies. All rights reserved. | www.hexaware.com Architectural Highlights  Prior to SP-2013 ViewState data was stored at the server end, which lead to problem that subsequent requests would have to be routed to the same server where ViewState was originally cached. This problem was solved in SP-2013 by storing as key pair value of GUID and ViewState to distributed ViewState cache.
  • 7. 7 © Hexaware Technologies. All rights reserved. | www.hexaware.com Architectural Highlights  For user profiles, it enables everything to be “in sync” and have minimal visible POSTs back to the server. As the distributed cache is resident in server memory the browser have to post back to Distributed Cache Service. In background data is persisted to database from the distributed cache to the database. During post back browser doesn't have to wait to get data persisted in database. This drastically improves page response performance.
  • 8. 8 © Hexaware Technologies. All rights reserved. | www.hexaware.com Distributed Caching - Installation  SharePoint 2013’s prerequisites installer takes care of installing the Windows Server AppFabric and configuring it for cache operations on your behalf.  There is no initial action required on the part of administrators to get the Distributed Cache service installed and operational in their SharePoint 2013 environment.
  • 9. 9 © Hexaware Technologies. All rights reserved. | www.hexaware.com Default DC Configuration  Default Memory allocation to DC Service is 10% of total physical memory.  From that it uses half of that memory allocation for data storage i.e. it uses 5% of cache size.  The other half of that memory allocation is used for memory management overhead.  When the cached data grows, the DC service uses the entire 10% of the allocated memory.
  • 10. 10 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC configuration for small farm Important Note: DC Service has to be turned ON all the WFE servers. Distributed Cache is on all WFE Servers
  • 11. 11 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC configuration for medium farm (10,000+ users) 1. It’s recommended to have dedicated DC Server allocated to the SharePoint Farm. 2. Use the following method to calculate how much memory can be assigned to the DC service.  Determine the total physical memory on the server. For this example, we will use 16 GB as the total physical memory available on the server  Reserve 2 GB of memory for other processes and services that are running on the cache host. i.e. 16 GB – 2 GB = 14 GB. This remaining memory is allocated to the Distributed Cache service  Take half of the remaining memory, and convert it to MB. For example, 14 GB/2 = 7 GB or 7000 MB. This is the cache size of the DC service
  • 12. 12 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC configuration for medium farm (10,000+ users) APP 03 is made dedicated Distributed Cache Server
  • 13. 13 © Hexaware Technologies. All rights reserved. | www.hexaware.com Wrongly configured DC… Page render time around 9-10 seconds!!
  • 14. 14 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC Configured Correctly.. After implementing the Dedicated DC service to a SharePoint farm and correctly updating the memory allocation the page rendered time improved drastically! Page render time NOT more than 2 seconds..
  • 15. 15 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC Configuration - Benefits  As it creates unique session for any of the user authentication technique like window authentication or forms authentication or external identity provider, in a subsequent calls, it bypasses the need to redirect to external identity providers and additional user prompts, in a way avoiding evident response time delay.  Creation of unique session token and caching the token avoids the multiple steps of regeneration of session token and saving the time to some extent.
  • 16. 16 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC Configuration - Benefits  Session tokens are centralized cached and webserver can trace token using windows identity or session cookie, the user can access any of the webservers without the need to re- login.  As ViewState data is stored in Distributed Cache, the problem related to request routing is resolved and page response time is improved to a large extent
  • 17. 17 © Hexaware Technologies. All rights reserved. | www.hexaware.com DC Configuration - Benefits  Social features like URLs for MySite portals, Following limits, UPA sync configuration, Newsfeed settings, Activity Feed are stored in Distributed cache and configured to Sync all the User Profile Applications (UPAs). Also during POST back action, browser have to POST back to DC and need not wait till data gets persisted in database. This improved the page performance drastically.
  • 18. 18 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenges & Tips Following slides covers some of the challenges faced during real life implementations of Distributed Caching Service in a medium farm of about 10000 users. All the tips provided here are actual resolutions provide by our “Hexaware SharePoint Expert” team
  • 19. 19 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenge # 1 You try to interact with the cache service and find that the service is not functioning correctly. Tip: Restarting the cluster is a simple first step that will often clear up any issues. Run the Command Restart-CacheCluster
  • 20. 20 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenge # 2 You get an error related to the registry. Tip: It usually means that the host you are working with is not part of a cluster and it sneeds to be added. Run the Add-SPDistributedCacheServiceInstance command to add.
  • 21. 21 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenge # 3 You try to add a cache host to the cluster and you get error ”TCP port already in use”
  • 22. 22 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenge # 4 You try to remove a cache host from the cluster and you get error “cacheHostInfo is null”.
  • 23. 23 © Hexaware Technologies. All rights reserved. | www.hexaware.com Tip for Challenge #3 & #4 Error showed in Challenge#3 & #4 usually means that the server was previously part of a cluster and wasn’t added or removed correctly. To resolve the issue execute following commands • $instanceName ="SPDistributedCacheService Name=AppFabricCachingService" • $serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName –and ($_.server.name) -eq "<Your Server Name>"} • $serviceInstance.Delete() • Add-SPDistributedCacheServiceInstance
  • 24. 24 © Hexaware Technologies. All rights reserved. | www.hexaware.com Challenge # 5 There was a medium farm with dedicated DC server and was facing page performance issue. When traced the ULS logs, found following error. Unexpected error occurred in method 'GetObject' , usage 'Distributed Logon Token Cache' – Exception crosoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following conditions. Ensure that security permission has been granted for this client account, and check that the AppFabric Caching Service is allowed through the firewall on all cache hosts. Also the MaxBufferSize on the server must be greater than or equal to the serialized object size sent from the client.
  • 25. 25 © Hexaware Technologies. All rights reserved. | www.hexaware.com Tip for Challenge #5 1. Update default DC parameters 2. Change parameter values for Security Token Service followed by IISRESET on all servers in the.  Set MaxServiceTokenCacfarmheItems to 1500  Set MaxLogonTokenCacheItems to 1500 DC Parameters Default Value Recommended MaxBufferPoolSize 268435456 1073741824 MaxBufferSize 8388608 33554432 ChannelOpenTimeOut 20 3000 RequestTimeout 20 3000 MaxConnectionsToServer 2 100
  • 26. 26 © Hexaware Technologies. All rights reserved. | www.hexaware.com Be Aware “The Distributed Cache service can end up in a non-functioning or unrecoverable state if you do not follow the procedures. In extreme scenarios, you might have to rebuild the server farm“
  • 27. 27 © Hexaware Technologies. All rights reserved. | www.hexaware.com Best Thing.. If you set DC Configurations Right then your SharePoint Farm will have an advantage of Highest Performance and Improved Scalability…