Share via


Deployment

In order to run this sample, you will need to do the following:

  • Run the WordAssociation.Tools.CorpusLoader utility to load the baseline data to the Azure database you created in Task 1 of the Getting Started section.
  • Deploy the WCF service assemblies and configuration to your head node and Windows Azure nodes.

To copy applications to each of the Windows Azure nodes, you will use the hpcpack command. This command can be used for packaging applications, uploading them to Windows Azure storage, and deploying packages to every Windows Azure worker node in the cluster, as shown in Figure 11:

Figure 11

Using the hpcpack command

Task 1 – Run the WordAssociation.Tools.CorpusLoader Utility

  1. In this task, you will deploy the Brown Corpus data to the SQL Azure database server you previously created, using the WordAssociation.Tools.CorpusLoader utility.
  2. Open Windows Explorer, navigate to the WordAssociation lab folder, and from there navigate to the Source\WordAssociation.Tools.CorpusLoader\bin\Debug folder.
  3. Run the WordAssociation.Tools.CorpusLoader.exe executable.

Task 2 – Copying the WCF Service Configuration to the Head Node

In this task, you will copy the WCF service configuration file to the head node’s service registration folder. This allows you to use the HPC 2008 R2 Cluster Manager application to diagnose the service deployment and create new service tasks. It also allows clients to create new sessions (interactive and durable) against the head node.

  1. Open the command prompt window from Start | All Programs | Microsoft Visual Studio 2010 | Visual Studio Tools | Visual Studio Command Prompt (2010).
  2. Navigate to the WordAssociation lab folder, and from there navigate to the Source\WordAssociation.Service\bin\Debug folder.
  3. Run the following command to copy the service configuration file to the head node:

    CMD

    xcopy WordAssociation.config \\MyHeadNode\HpcServiceRegistration\ /Y

    Note:
     Replace the MyHeadNode machine name with the name of your head node machine. The HpcServiceRegistration share is created when the head node is installed.

Task 3 – Deploying the WCF Service to Windows Azure Nodes

In this task, you will deploy the WCF service to your Windows Azure nodes.

  1. Open the command prompt window from Start | All Programs | Microsoft Visual Studio 2010 | Visual Studio Tools | Visual Studio Command Prompt (2010).
  2. Navigate to the WordAssociation lab folder, and from there navigate to the Source\WordAssociation.Service folder.
  3. Run the following command to create a deployment package for the service storage (this step is illustrated in step 1 of Figure 11):

    CMD

    hpcpack create WordAssociation.zip bin\debug\

    Note:
    Note: Do not change the name of the package; it must match that of the service configuration file and the service name used by the client application.

  4. Run the following command to upload the deployment package to the Windows Azure package storage (this step is illustrated in step 2 of Figure 11):

    CMD

    hpcpack upload WordAssociation.zip /nodetemplate:"Azure node template"
    Note:
     Change the value of the nodetemplate parameter to the name of your Windows Azure node template.

  5. If you already have Windows Azure nodes started in the HPC cluster, you need to copy the new package to them. To sync the Windows Azure nodes with the new packages stored in the application packages blob, run the following command (this step is illustrated in step 3 of Figure 11):

    CMD

    clusrun /nodegroup:AzureNodes hpcsync