Versions Compared

Key

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

...

  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.
     

     

Sample Configurations

Please see Sample Autoscaling Configurations.