Active-Active
- Go to http://localhost:8181.
- Log in as admin/admin.
- Click on the Fabric perspective, and on the Containers tab.
- Click on the root container name.
- Click on the Add button.
- Enter “autoscale” in the profile search text box, select “autoscale” and click Add.
- Click on the Containers tab.
- Make sure there are two “lab9container” containers up and running
- Click on the Profiles tab.
- Search for the lab9profile by entering “lab9profile” in the profile filter textbox.
- Select the profile (click on its name).
- Click on the “Add Requirements” button.
- Enter “2” as Minimum Instances.
- Enter “2” as Maximum instances.
- Click Save.
- Click on the Containers tab.
- Select the “lab9container2” container and click Stop.
- Notice that as a consequence of taking down a container, Fabric has created and started a new container with lab9profile profile.
- Click on the Containers tab again.
- Select the “lab9container2” container and click on the Start button.
- Since the maximum amount of instances is 2, Fabric is going to take down one of the containers to meet the defined requirements.
- Click on the Scaling tab.
- Delete profile’s requirements by clicking on the red cross, and click on the Save button.
- Select all the lab9container containers and click on the Delete button.