WIP: “Simulated” auto scaling with PHP

Source: AutoScale on BitBucket

General idea:
Use a locale memcached database to keep an eye on load for the current server, using data from processes using resources on the node. (Eg. not connection time to database server, only pure processing power used on current node).

Usage:
Edit config.php.
execute agent.php

Todo:

  • Allow possibility to change testing to “loadavg”, as a source for determine load.