Share via


Deployment

In order to run this sample, you will need to deploy the CPU Spinner parametric sweep application to your compute nodes (both on-premises and Windows Azure nodes).

Task 1 – Deploying the Parametric Sweep Application to On-Premises Nodes

In this task, you will deploy the CPU Spinner parametric sweep application to your HPC cluster’s on-premises nodes. Instead of manually copying the application to each on-premises node, you can use the clusrun command to run the xcopy command in all the nodes.

Note:
 If you are going to test this sample on Windows Azure nodes only, you can skip this task.
  1. In your head node machine, create a share named apps, and inside it create a folder named CPUSpinner. Verify that all the on-premises nodes can access this share.
  2. In the Solution Explorer window, right-click the CPUSpinner project and select Open Folder in Windows Explorer.
  3. Navigate to the bin\Debug folder, and copy the folders content to the CPUSpinner folder in the shared folder you created in the head node.
  4. Open the command prompt window from Start | All Programs | Microsoft Visual Studio 2010 | Visual Studio Tools | Visual Studio Command Prompt (2010).
  5. Run the following command line to allow the parametric sweep application to use the same command line paths whether it runs in on-premises nodes or Windows Azure nodes:

    C#

    cluscfg setenvs "CCP_PACKAGE_ROOT=c:\apps"
    Note:
     To run the parametric sweep application on both types of nodes (on-premises and Windows Azure) with the same command line, you need to use an environment variable that exists in both types of nodes. The CCP_PACKAGE_ROOT environment variable is already defined in Windows Azure compute nodes; therefore, you need to define it for the on-premises nodes as well.

  6. Run the following command line to instruct all the nodes to copy the application from the shared folder:

    CMD

    clusrun /nodegroup:ComputeNodes xcopy \\MyHeadNode\apps\CPUSpinner\*.* %CCP_PACKAGE_ROOT%\CPUSpinner\ /Y

Task 2 – Deploying the Parametric Sweep Application to Windows Azure Nodes

In this task, you will package and deploy the CPU Spinner parametric sweep application 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 CPUSpinner labs folder, and run the following command to create a deployment package for the service:

    CMD

    hpcpack create CPUSpinner.zip Source\CPUSpinner\bin\debug\

  3. Next, run the following command to upload the deployment package to the Windows Azure package storage:

    CMD

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

  4. 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:

    CMD

    clusrun /nodegroup:AzureNodes hpcsync