Configure AppFabric cache host

  1. To create the cache host, open a Caching Administration PowerShell window on the First AppFabric Server. Then execute the following commands:
  2. New-Cache –CacheNameSitrionSocial

    Start-CacheCluster

    Get-CacheHost

  3. 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.
  4. Remove the Default cache as it is no longer used. In the Caching Administration Powershell window, execute the following command:
  5. Remove-Cache -CacheName default

  6. 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.
  7. Stop-CacheCluster

    Set-CacheHostConfig –HostNameyourappfabricservernamehere.com -CachePort 22233 -CacheSize16384

    Start-CacheCluster