35 Dynamically Provisioning Resources in an MWaaS Cloud

This chapter describes the process of adding or removing resources based on demand to an MWaaS cloud. It contains the following sections:

35.1 Provisioning Resources

After you have set up and configured the virtual machine adapter, you can dynamically add or remove virtual resources to your MWaaS cloud whenever required.

Prerequisites

To provision new virtual resources in a MWaaS cloud, follow these steps:

  1. Log into Enterprise Manager as a user with the EM_SSA_ADMINISTRATOR role.
  2. From the Enterprise menu, select Cloud, then select Cloud Home. The Cloud Home page appears.
  3. From the Oracle Cloud menu, select Resource Providers. The list of existing resource providers is displayed.
  4. Select a middleware pool from the list. From the Resources menu, select Provision.
  5. In the General page, the virtual adapter instance with which the middleware pool is associated is displayed.
  6. In the Execution Name field, enter a name for the provisioning procedure.
  7. In the Resources to be Provisioned field, enter the number of virtual machines that are to be provisioned.
  8. If dynamic provisioning has been enabled for this middleware pool, the Turn on Dynamic Provisioning flag is selected. If it has not been enabled, you can select the flag and enable it here. See Enabling Dynamic Resource Provisioning.
  9. Click Next. The Virtual Machine Configuration page appears.

    Enter the following details:

    • Virtual Machine Template: Select the virtual machine template. This is the virtual adapter service template that was created while setting up the virtual service adapter. See Creating the Virtual Machine Service Template. Based on the template selected, the default virtual machine configuration is displayed. The configuration details can be modified.

  10. Click Next. Specify the schedule for the provisioning procedure and click Next.
  11. Review the information and click Submit to submit the provisioning job.

35.2 De-Provisioning Resources

You can remove or de-provision resources from your MWaaS cloud by following these steps:

  1. Log into Enterprise Manager as a user with the EM_SSA_ADMINISTRATOR role.
  2. From the Cloud menu, select Cloud Home. The Cloud Home page appears.
  3. From the Oracle Cloud menu, select Resource Providers. The list of existing resource providers is displayed.
  4. Select a middleware pool from the list. From the Resources menu, select De-Provision.
  5. Enter a name and description for the procedure.
  6. In the Resources to De-Provision region, click Add and select one or more hosts to be de-provisioned.
  7. Click De-Provision to submit the job and remove the selected hosts.

35.3 Enabling Dynamic Resource Provisioning

You can enable dynamic provisioning for a middleware pool. If dynamic provisioning is enabled, when a self service user requests for a middleware service (WLaaS, JVMaaS, SBaaS, SOAaaS), virtual machines are automatically provisioned. Similarly, when the self service user no longer requires the virtual machine, it is automatically de-provisioned.

To enable dynamic provisioning, follow these steps:

  1. Log into Enterprise Manager as a user with the EM_SSA_ADMINISTRATOR role.
  2. From the Enterprise Manager menu, select Cloud, then select Cloud Home. The Cloud Home page appears.
  3. From the Oracle Cloud menu, select Resource Providers.
  4. Select a middleware pool and from the Resources drop down menu, select Dynamic Provisioning and then select Turn On.
  5. In the General page, the virtual machine adapter with which the resource provider is associated is displayed. See Creating the Virtual Machine Adapter Instance.
  6. In the Resources to be Provisioned field, enter the number of resources that are to be provisioned with the specified configuration. The number of servers specified in the middleware profile used in the service template will override the value specified here. Click Next. The Virtual Machine Configuration page appears.
  7. In the Service Template field, select the virtual machine template from the drop down list. The configuration details as defined in the template are displayed. You can use the selected service template configuration or modify it if required. See Creating the Virtual Machine Service Template for details.
  8. Click Next. Review the information entered so far and click Save to save the configuration. The saved configuration will be applied on all virtual machines provisioned by the self service user.

35.3.1 Disabling Dynamic Provisioning

You can disable dynamic provisioning for a specific resource provider. Select a middleware pool for which dynamic provisioning has been enabled and from the Resources drop down, select Dynamic Provisioning, and then select Turn Off. A confirmation message is displayed. If you select Yes, dynamic provisioning will no longer be enabled for the selected resource provider.