SIGN UP MEMBER LOGIN:    
ARTICLE

Installing And Configuring The Windows Server AppFabric Cache Services

Posted by Amit Choudhary Articles | Windows Services in C# July 19, 2011
Here you will see how to install and configure the Windows Server AppFabric Cache Services
Reader Level:


You can download the Windows Server Appfabric from here. For a complete installation guide and perquisites details see here.

Now run the setup file. You'll see a screen after clicking next from the welcome screen. Select what service you would like to install through setup. This time we will use Cache Client and Cache Administration.

Windows Server Appfabric Setup file

Click next for confirmation and click further to proceed with installation.

Windows Server Appfabric Setup Wizard
After the installation is done, you want to configure the setup for the host for what service you are using. I'm showing here configuratioin of the Cache Service.

Configuring the Cache Services:

Now launch the configuration tool from Start->AllPrograms->Windows Server AppFabric->Configure AppFabric.

Click next to skip the first two steps, including the Configuration of Hosting Services, since we're not going to discuss those right now. On the Configuration Caching service tab you'll get the screen like below.

Windows Server Appfabric Configuration Wizard

Click the Check box "Set Caching service configuration".

It'll enable the "Caching Service configuration provider" drop down.

Caching service provider Cache Service
Now select the SQL Server AppFabric provider option & click Configure.

[Note: If your (in case it is a single machine) PC is a part of any WorkGroup\DomainGroup then this won't apply.

You can also select XML provider but in that case you need to create a shared directory on the network share and mention the path in configure option.

Windows Server AppFabric Configuration File

Specify the server name and database name. If you are creating a new database then check the box for the option "Create AppFabric Caching Service configuration database".

Give the name for the new database for e.g. AppFabric_Cache

Click OK; it'll prompt you to confirm. Click Yes.

Windows Server AppFabric Confirm
Windows Server AppFabric




If you see the success message then that means your SQL database for AppFabric is created successfully.

SQL database for AppFabric

Now click on and select the Cluster setting. If you are configuring it the first time then select the new Cluster otherwise for an existing setting click Join cluster if you have already installed a cluster on you machine.
 
Now click Next.

Windows Server AppFabric Next

Keep the default setting of Ports as it is. As in most of the examples these are the standard ports used. Select the two check boxes under the Windows Firewall exceptions section.

And click Next.

Windows Server AppFabric Wizard

Click Yes in the confirmation box. It'll be configured in a few seconds depending on your machine.

Windows Server AppFabric Wizard Machine

After the processing is complete click the FINISH button on the screen.

And your Windows Server AppFabric Cache services are installed and configured.

But it's still not ready to use. There are a few basic settings you need to setup using the PowerShell.

Now go to Start->All Programs -> Windows Server AppFabric -> Caching Administration Windows PowerShell.

Run the powerShell with Administrator privilege. Otherwise you'll see the <ERROR 0…0032> when running a few commands.

Type the following command to start the cache cluster and service host:

  1. Use-CacheCluster
  2. Get-CacheHost

    Windows Server AppFabric CacheHost
     
  3. To start the CacheHost run Start-CacheHost <hostname> <port>

    Windows Server AppFabric Post
     
  4. Creating a new cache run New-Cache –CacheName <myCache>
  5. List the available Cache in running service host run Get-Cache

Hope this was helpful for setting up the Windows Server Appfabric. Now your cache Services are ready to use.

Cheers!!!
 

Login to add your contents and source code to this article
share this article :
post comment
 
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Nevron Gauge for SharePoint
Become a Sponsor