Previous Topic: Parameters for ProvisioningNext Topic: Configuring an Application


How to Provision an Application

As a CA AppLogic® operator, you provide applications on the grid to your customers. Often, you provide the same application to multiple users. The number of users and their requirements can change frequently. Therefore, your application must be deployable on demand as multiple instances.

For on-demand deployment in the CA AppLogic® environment, you prepare a template application. Template applications are not fully configured and cannot be run. When you create an instance of the template application, you provide necessary configuration details, such as IP addresses and billing codes. These details are unique to each instance. Provisioning is the process of creating those unique instances on demand.

CA AppLogic® includes many preconfigured template applications. One of these template applications is LAMP. This scenario uses LAMP as an example of a template application to provision. The acronym LAMP refers to first letters of the components of the solution stack composed entirely of free and open-source software, suitable for building high-availability heavy-duty dynamic web sites. CA AppLogic® enables service providers to offer LAMP on demand.

Diagram of the process for provisioning an application for multiple customers

To provision an application, follow these procedures:

  1. Receive a customer request for an application instance.
  2. Collect resource requirements and parameters that are necessary to complete the application configuration.
  3. (Optional) Copy the LAMP template application. Partially configure the copy of the template application, specifying any permanent parameter values that all instances inherit.

    Note: You configure a copy of the template application so that the original template application is unaltered.

  4. Run the provisioning wizard on the template application.

When the wizard is finished, you have a fully configured LAMP application instance.

Prerequisites

Before you provision the LAMP application, verify that the following requirements are met:

Request for an Application Instance

This scenario assumes that you work for a SaaS provider. Your workflow involves receiving requests to provide application instances to customers. In this scenario, you fill the following sample request:

Parameter

Value

Software

LAMP

CustomerID

SuperCo

Billing Code

205832

Customer resource requirements

None specified (use default resource allocation)

Other LAMP parameters are not mentioned in the customer request. In this example, either the customer sets these parameters through the LAMP administration interface or the default values are accepted. For example, the customer is given the administration IP and default password for the LAMP administration interface. After the application is provisioned, the customer logs in to this interface and changes the password.

Collect Resource Requirements and Boundary Parameters

This scenario walks you through configuring the mandatory parameters for provisioning LAMP. When you provision an application for your organization, before you begin, check the parameters that you configure. Discover whether parameters are mandatory or optional. Discover the permitted range of values. This information is available from the following sources:

Applications have the following types of parameter:

General

Application instance name, description, and customer billing information.

Values: Arbitrary, depending on the procedures in your company.

In this scenario: You set application instance name and customer billing information.

Resources

System resources, such as CPUs and memory, that are allocated to your application instance.

Values: Default values are set in the template application. Change the default values only if your customer has requirements that exceed them.

In this scenario: Use the default values.

Properties

Application-specific settings that specialize the application instance for its role. Some properties are set for the template application. All instances inherit these property values. Other properties are set for each instance during provisioning.

Values: IP and IP-owned property values match grid values. Other property values depend on customer requirements.

In this scenario: You set only the IP and IP-owned properties, which are mandatory.

Partially Configure a Copy of the Template Application

Some parameters have the same value for all instances of an application. For efficiency, set those values in the template application itself. All instances of that application inherit these values. You set the values only once instead of setting them every time you provision the application.

To follow best practice, copy the template application and set parameter values in that copy. By doing so, you always have an unaltered version of the template application.

Note: In this scenario, you set the template application gateway, netmask, and DNS properties. Use the values from your grid. These properties are the same for all applications on your grid.

Follow these steps:

  1. Log in to the grid. In a browser, open the system dashboard.
  2. Open the Applications tab, right-click the LAMP template application, and select Copy. Accept the default name for the copy.
  3. After copying is completed, right-click the copy in the Applications tab and select Configure.
  4. In the Application Configuration dialog, select the Properties tab, then locate the netmask, gateway, and dns1 fields.

    Note: The properties with red fields are mandatory. However you give values to some of these fields later, when you provision the application. A template application does not have all parameters configured.

  5. Go back to the Dashboard tab in the system dashboard and locate the netmask, gateway, and name servers fields.

    These values apply to all applications on this grid.

  6. Copy and paste the following values and click OK:

    You have a copy of the LAMP template application. That copy is now configured and ready for provisioning.

Run the Provisioning Wizard

Each time you provision a template application, you create a unique instance for an end user. This procedure explains how to use the provisioning wizard in the UI. Here you provision the template application copy that you created and configured.

Follow these steps:

  1. Log in to the grid. In a browser, open the system dashboard.
  2. Open the Applications tab, right-click the copy of the LAMP template application that you configured, and select Provision.
  3. Name the instance LAMP_r18_SuperCo_instance1.

    A best practice is to include the customer name (in this case, SuperCo) in the instance name.

  4. Type in the following information:
  5. Click Next.

    The Configure Resources page opens.

  6. Click Next to accept default resource settings.

    In the Configure Resources page, the CPU, Memory, and Bandwidth sliders all have default values. Disk volumes also have default sizes.

    CA AppLogic® assigns volumes and default sizes that are based on the template application configuration. You cannot add or delete a volume but you can change the volume size.

  7. Click Next to skip the Configure Interfaces page.

    This page refers to raw interfaces, and this application has no raw interfaces.

  8. Fill in all empty, mandatory IP fields. Click Next.

    The IP field values are under Application IP Range in the Dashboard tab.

    The instance inherits the values for the gateway, netmask, and dns1 from the template application.

    f a selected IP address is in use, you receive an error message.

  9. Click Next to accept the default setting.

    The application launches when provisioning is complete. When the provisioning is complete, you have a running instance of LAMP accessible at the IP addresses you specified in the provisioning wizard. Point a browser window to the user IP address and the LAMP console appears.