Deployment

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

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

In this task, you will deploy the aqsis 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. Verify that all the on-premises nodes can access this share.
  2. In the Solution Explorer window, right-click the solution and select Open Folder in Windows Explorer.
  3. Copy the aqsis folder and its sub-folders to 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:

    CMD

    cluscfg setenvs "CCP_PACKAGE_ROOT=c:\apps"
    Note:
     Since the CCP_PACKAGE_ROOT environment variable used in the parametric sweep job is defined only in Windows Azure compute nodes, and we want the command line to also run on on-premises nodes, we need to set it manually for each of the on-premises nodes.

  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\aqsis\*.* %CCP_PACKAGE_ROOT%\aqsis\ /EY

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

In this task, you will deploy the aqsis 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 ImageRendering labs folder, and run the following command to upload the deployment package to the Windows Azure package storage:

    CMD

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

  3. 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