Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

This page is under construction.

Table of Contents

Providing autoscaling related parameters

...

  • WSO2 Carbon services
    Define the autoscaling related parameters before WSO2 Elastic Load Balancer (ELB) starts up. (Soon we We will support the dynamic behavior for Carbon servers soon).

  • Non-Carbon services
    Define autoscaling parameters when subscribing to a Cartridge.

...

  1. Load the Stratos2 CLI tool and subscribe to the PHP Cartridge as follows:

    Code Block
    stratos>subscribe php nirmal -min 1 -max 5

    Execution of the above command will result in starting up a PHP service instance with a GIT repo.

  2. Push a PHP application to the GIT repository, created just for you.
    You can add a PHP application for testing purposes that does nothing other than sleep for 30 seconds. Seconds after committing your app, you should be able to access it.
  3. Write a small JMeter test script to load your PHP application.
    After awhile you should notice that the nodes are scaling up (provided you loaded the PHP application heavily). You should also notice, when the load test is over the extra nodes scaling down.