deploylib.mesos.WebAppScheduler
- frequency with which targetNumServers recalculated
- Wait to kill a webapp server until you have failed to retrieve its request rate this many times.
- Smooth adding webapp servers by weighing in history. Must be geq 0.0 and lt 1.0.
- Smooth killing webapp servers by weighing in history. Must be geq 0.0 and lt 1.0.
Periodically query all of the webapp servers currently thought to be alive (i.e. in the servers HashMap), calculate the aggregate request rate to the application, and then derive the target number of webapp servers necessary to satisfy that request rate. Kill some webapp server mesos tasks if the app is currently over provisioned. If more are needed, they will be acquired by resourceOffer().