Configure AppFabric cache host
- To create the cache host, open a Caching Administration PowerShell window on the First AppFabric Server. Then execute the following commands:
Get-CacheHost
yields a list of cache hosts configured. Please ensure you copy the value of the Column HostName :PortNumber as this data is needed at a later stage.- Remove the Default cache as it is no longer used. In the Caching Administration Powershell window, execute the following command:
- Set the cache-size to the amount of memory the server has, reserving at least 2Gb minimum for the OS (for example, set a cache size of 14 Gb for a server with 16 Gb of RAM).A cache size of 16 Gb or less is recommended to minimize latency.
New-Cache –CacheNameSitrionSocial
Start-CacheCluster
Get-CacheHost
Remove-Cache -CacheName default
Stop-CacheCluster
Set-CacheHostConfig –HostNameyourappfabricservernamehere.com -CachePort 22233 -CacheSize16384
Start-CacheCluster