|
Abiquo 4.0 introduces horizontal autoscaling of virtual machines through scaling groups created for virtual machines. When a scaling event is triggered, Abiquo will follow the scaling rules of the scaling group. To scale out, it will clone the base virtual machine (with the template disk content) and deploy, and to scale in, it will delete clones or undeploy the base virtual machine.
To use autoscaling do these steps:
In version 4.0, Abiquo does not clone captured virtual machines, so you will need to create an instance and recreate the virtual machine from the resulting template to use autoscaling |
Screenshot: Create scaling group
Abiquo clones the base virtual machine and deploys the clones. Abiquo will not deploy other virtual machines in the scaling group if they are not deployed.
If the base virtual machine is not deployed, Abiquo will not deploy it. In order to add another virtual machine, Abiquo will clone the base machine and deploy the clone. If the base machine is deployed, Abiquo will count it as one of the active machines in the scaling group. As part of a scale in operation, Abiquo will delete clone machines but it will only undeploy the base machine. Note that if the base machine were deleted directly on the hypervisor, this would destroy the scaling group, whereas if the base machine is undeployed, the scaling group is not vulnerable to interference at the hypervisor level.
Ensure that you have enough resources in their virtual datacenter to deploy up to the maximum number of cloned virtual machines. In particular, obtain enough available IP addresses of the same category to assign to clones, for example, by reserving public IP addresses, or by obtaining IP addresses in external networks, or creating private networks.
Abiquo supports horizontal autoscaling with virtual machine scaling groups.
Before you begin:
To create a scaling group:
When you save the scaling group, Abiquo will mark the virtual machine icon with the scaling group symbol and display the scaling group name. If necessary, Abiquo will create clones of the base machine and deploy them in order to reach the minimum size. The number in the bottom right-hand corner of the icon is the number of running virtual machines in the scaling group, including the base machine.
To trigger autoscaling operations, you will need to create an action plan for the virtual machine with the autoscaling group, and then create triggers to run the action plan. Example of triggers are virtual appliance alerts or action plan schedules.
See Manage action plans and triggers v4.0
When a virtual machine is part of a scaling group, Abiquo does not allow you to perform deploy or configuration operations on the virtual machine, unless you put the scaling group into maintenance mode.
You cannot create alarms for cloned virtual machines that are part of a scaling group.
Maintenance mode temporarily disables autoscaling and enables you to make changes to your virtual machines, for example, to manually deploy or undeploy machines, or to edit the scaling group itself. Remember that if you manually undeploy virtual machines, Abiquo will not reuse them. Abiquo will always clone the base virtual machine to expand the scaling group.
Note that in maintenance mode you can undeploy the base virtual machine but you cannot delete it; to delete the base virtual machine, you will need to delete the scaling group.
When you leave maintenance mode, Abiquo will apply your modifications to the scaling group, e.g. adding new rules. Then Abiquo will adjust the number of virtual machines in the group to within the minimum and maximum size range.
To put the scaling group in maintenance mode:
You can now make changes to the scaling group:
Remember that when you leave maintenance mode, Abiquo will adjust the number of virtual machines in the scaling group to within the maximum and minimum range, creating and deleting clones or undeploying the base machine, as appropriate.
To leave maintenance mode: