Active-Active

  1. Go to http://localhost:8181.
  2. Log in as admin/admin.
  3. Click on the Fabric perspective, and on the Containers tab.

  1. Click on the root container name.
  2. Click on the Add button.

  1. Enter “autoscale” in the profile search text box, select “autoscale” and click Add.

  1. Click on the Containers tab.
  2. Make sure there are two “lab9container” containers up and running
  3. Click on the Profiles tab.
  4. Search for the lab9profile by entering “lab9profile” in the profile filter textbox.
  5. Select the profile (click on its name).
  6. Click on the “Add Requirements” button.

  1. Enter “2” as Minimum Instances.
  2. Enter “2” as Maximum instances.
  3. Click Save.

  1. Click on the Containers tab.
  2. Select the “lab9container2” container and click Stop.

  1. Notice that as a consequence of taking down a container, Fabric has created and started a new container with lab9profile profile.
  2. Click on the Containers tab again.
  3. Select the “lab9container2” container and click on the Start button.
  4. Since the maximum amount of instances is 2, Fabric is going to take down one of the containers to meet the defined requirements.
  5. Click on the Scaling tab.
  6. Delete profile’s requirements by clicking on the red cross, and click on the Save button.

  1. Select all the lab9container containers and click on the Delete button.

results matching ""

    No results matching ""