Home > AppFabric > AppFabric 1.1–Auto Start on computer start up

AppFabric 1.1–Auto Start on computer start up

One of the things about AppFabric is that you cannot run it directly via services

 

image

NEVER and I mean NEVER set this to automatic, you will pay dearly for this

 

The recommended way is to run the Caching Administration Powershell shortcut

image

and then run Start-CacheHost

 

HOWEVER, there is a way for AppFabric to automatically start upon computer start up, what you need to do is to create the following powershell script and save it somewhere, e.g c:\appfabric.ps1

 

import-module DistributedCacheAdministration

$computer = gc env:computername

use-cachecluster

start-cachehost -hostname $computer -cacheport 22233

 

Then add a scheduled task with the following settings

General

image

 

Triggers

image

Actions

image

Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

Arguments: C:\appfabric.ps1

 

Reboot the computer and watch AppFabric automagically startup on boot, enjoy!

Categories: AppFabric
  1. May 19, 2014 at 7:55 pm

    I’m very very curious. Why is it bad to start the service/set to automatic ?

    • May 21, 2014 at 10:12 am

      Elvar

      The powershell script do start the service, i’m guessing there is some initialization that is needed which the service is somehow unaware of

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: