Manual Chapter :
Deploying Multiple AS3 Objects of the Same Type
Applies To:
Show VersionsBIG-IQ Centralized Management
- 8.3.0, 8.2.0, 8.1.0, 8.0.0
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).
You can deploy these monitors in two simple steps.
- 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.
- 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).
- At the top of the screen, clickApplications, then, on the left, clickAPPLICATION TEMPLATES.The screen lists the AS3 and service catalog templates defined on this BIG-IQ.
- Select the AS3 template namedAS3-F5-HTTPS-offload-lb-existing-cert-template-big-iq-defaultand then clickClone.
- In the popup screen, type theNamethat you want to use for the new template, and then clickClone.BIG-IQ creates a clone of the AS3 template. Next, we'll edit it.
- Click the name of the new AS3 template you just created.The Properties area lists the classes included in this template.
- Type a name for theTenantand clear theEditablecheck box.
- Next to Classes clickAdd/Removeto display the AS3 class types available for this template.
- In the popup screen, scroll down toMonitors, select its check box, then clickSave.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.
- Under Properties, selectMonitor.BIG-IQ displays the Monitor Properties page.
- Specify the required default property values and the properties BIG-IQ will use when you deploy the application service.
- ForMonitor type, selecthttps.
- Select theEditablecheck box for the following properties:Interval,Timeout,Send, andReceive = down.
- ClickSave.
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. - Under Properties, selectPool.BIG-IQ displays the properties page for the Pool class.
- Under Properties, forMonitor Types, selectCustom Monitor.
- Under Monitors:
- ForAllow Multiple Instances, selectEnable
- ForUse, selectEditable, and then type inMonitorfor the default value.
- ClickPublish & 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.
- At the top of the screen, clickApplicationsthen, on the left, clickAPPLICATIONS.The screen lists the applications currently defined on this device.
- ClickCreate.The Create Application Service screen opens.
- Under Application Properties:
- ForGrouping, selectNew Application.
- ForApplication Name, type a name for the new application.
- ForApplication Service Method, selectUsing Templates.
- For theTemplate Type, select the AS3 template you created in the previous task.
- Use theApplication Service NameandDescriptionfields to identify the new application service.
- ForTarget, identify the BIG-IP device to which you want the application to deploy.
- Under Pool, identify the server and monitors for the application service.
- ForServer Addresses, type the IP address of the virtual server you want to use.
- ForMonitors, in theUseproperty, typeMonitor1and then click the + button.
- For the secondUsevalue, typeMonitor2.
- Under Monitor, specify the details for the first monitor.
- ForName, typeMonitor1.
- ForSend, type in the string you want to send for this monitor.
- ForTimeout, type90.
- ForInterval, type30.
- ForReceive = down, typeOK-WBS.
- Specify the details for the second monitor.
- ForName, click the + button to generate a new set of properties and then typeMonitor2.
- ForSend, type in the string you want to send for this monitor.
- ForTimeout, type90.
- ForInterval, type30.
- ForReceive = down, typeServiceRunning.
- Under Service_HTTPS, forVirtual addresses, type the IP address of the virtual sever that you want the HTTPS service to use.
- You have configured all of the objects needed for this application, so clickCreate.
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.