Manual Chapter : Deploying Multiple AS3 Objects of the Same Type

Applies To:

Show Versions Show Versions

BIG-IQ Centralized Management

  • 8.3.0, 8.2.0, 8.1.0, 8.0.0
Manual Chapter

Deploying Multiple AS3 Objects of the Same Type

How do you deploy multiple monitors to an AS3 application?

You can complete this task to gain a better understanding of how AS3 objects, classes, and properties interact to deploy multiple objects of the same type (for example monitors or profiles). In this example, we've deployed a server and it is running two different services. To insure the health of that server, we need to deploy a monitor for each service.
The following illustration describes how BIG-IQ uses the AS3 class property definitions you make in the template to create an application service with multiple monitors. The same concepts apply when you need to deploy multiple instances of other objects (like profiles or.iRules).
AS3 classes and properties
You can deploy these monitors in two simple steps.
  1. Create an AS3 application template that includes multiple instances of the monitor class type. As shown in the illustration, when you define the properties for the monitor and pool classes in the template, you specify that you want multiple monitors and the unique properties that each monitor needs.
  2. Next you use the template you just created to deploy an application service to your BIG-IP, specifying the values of those unique properties for each monitor.

Create an AS3 template to deploy two monitors

Before you perform this sample task, you must have user permissions to access the resources (templates, devices, etc.) needed to deploy the application.
In this task, you create an AS3 application template that includes multiple instances of a single class type (monitors).
  1. At the top of the screen, click
    Applications
    , then, on the left, click
    APPLICATION TEMPLATES
    .
    The screen lists the AS3 and service catalog templates defined on this BIG-IQ.
  2. Select the AS3 template named
    AS3-F5-HTTPS-offload-lb-existing-cert-template-big-iq-default
    and then click
    Clone
    .
  3. In the popup screen, type the
    Name
    that you want to use for the new template, and then click
    Clone
    .
    BIG-IQ creates a clone of the AS3 template. Next, we'll edit it.
  4. Click the name of the new AS3 template you just created.
    The Properties area lists the classes included in this template.
  5. Type a name for the
    Tenant
    and clear the
    Editable
    check box.
  6. Next to Classes click
    Add/Remove
    to display the AS3 class types available for this template.
  7. In the popup screen, scroll down to
    Monitors
    , select its check box, then click
    Save
    .
    BIG-IQ displays the Properties page for the first class defined in this template (
    Analytics_Profile
    ). For this example, we need to revise two of these classes.
  8. Under Properties, select
    Monitor
    .
    BIG-IQ displays the Monitor Properties page.
  9. Specify the required default property values and the properties BIG-IQ will use when you deploy the application service.
    1. For
      Monitor type
      , select
      https
      .
    2. Select the
      Editable
      check box for the following properties:
      Interval
      ,
      Timeout
      ,
      Send
      , and
      Receive = down
      .
    3. Click
      Save
      .
    When you use this template to deploy an application, BIG-IQ displays only the properties you selected. Because you specified a value for the type of monitor but did not make the property editable, you won't need to specify the kind of monitors when you deploy the application.
  10. Under Properties, select
    Pool
    .
    BIG-IQ displays the properties page for the Pool class.
  11. Under Properties, for
    Monitor Types
    , select
    Custom Monitor
    .
  12. Under Monitors:
    1. For
      Allow Multiple Instances
      , select
      Enable
    2. For
      Use
      , select
      Editable
      , and then type in
      Monitor
      for the default value.
  13. Click
    Publish & Close
    .
    That's all of the changes needed for the template, so now you can use it to create the application service.

Deploy an AS3 application with two monitors

Before you can perform this sample task, you must have:
  • User permissions to access the resources (templates, devices, etc.) needed to deploy the application.
  • IP addresses for the virtual server that processes your external traffic for your application service.
  • IP addresses for the nodes or servers that process the data for your application service.
This is the second of two tasks you can complete to gain a better understanding of how AS3 objects, classes, and properties work. In this task, you use your new template to deploy an application that includes both monitors to your BIG-IP. When you deploy the service to your BIG-IP, you specify only the properties that are unique to each monitor.
  1. At the top of the screen, click
    Applications
    then, on the left, click
    APPLICATIONS
    .
    The screen lists the applications currently defined on this device.
  2. Click
    Create
    .
    The Create Application Service screen opens.
  3. Under Application Properties:
    1. For
      Grouping
      , select
      New Application
      .
    2. For
      Application Name
      , type a name for the new application.
    3. For
      Application Service Method
      , select
      Using Templates
      .
  4. For the
    Template Type
    , select the AS3 template you created in the previous task.
  5. Use the
    Application Service Name
    and
    Description
    fields to identify the new application service.
  6. For
    Target
    , identify the BIG-IP device to which you want the application to deploy.
  7. Under Pool, identify the server and monitors for the application service.
    1. For
      Server Addresses
      , type the IP address of the virtual server you want to use.
    2. For
      Monitors
      , in the
      Use
      property, type
      Monitor1
      and then click the + button.
    3. For the second
      Use
      value, type
      Monitor2
      .
  8. Under Monitor, specify the details for the first monitor.
    1. For
      Name
      , type
      Monitor1
      .
    2. For
      Send
      , type in the string you want to send for this monitor.
    3. For
      Timeout
      , type
      90
      .
    4. For
      Interval
      , type
      30
      .
    5. For
      Receive = down
      , type
      OK-WBS
      .
  9. Specify the details for the second monitor.
    1. For
      Name
      , click the + button to generate a new set of properties and then type
      Monitor2
      .
    2. For
      Send
      , type in the string you want to send for this monitor.
    3. For
      Timeout
      , type
      90
      .
    4. For
      Interval
      , type
      30
      .
    5. For
      Receive = down
      , type
      ServiceRunning
      .
  10. Under Service_HTTPS, for
    Virtual addresses
    , type the IP address of the virtual sever that you want the HTTPS service to use.
  11. You have configured all of the objects needed for this application, so click
    Create
    .
BIG-IQ creates the application and deploys the application service to the target you specified.
Before you can view these newly-deployed objects on the Configuration tab, you must rediscover and re-import services for each service impacted by the deployment. Keep in mind that objects deployed with AS3 are view-only on the Configuration tab. To make changes to these objects, you make changes to the AS3 application.