commit | a91889d467848ceefa88855fd615afe9bca94931 | [log] [tgz] |
---|---|---|
author | Aled Sage <aled.sage@gmail.com> | Fri Jan 08 21:33:25 2016 +0000 |
committer | Aled Sage <aled.sage@gmail.com> | Thu Jan 14 10:45:13 2016 +0000 |
tree | d635f4c2ab4391dfaa36317bc45c898b6f3849b3 | |
parent | dd3b8e823dd40d9bff2d7d5f7d31dc5b84291e9d [diff] |
BROOKLYN-212: AutoScaling doesn’t retry if InsufficientCapacity - Adds Resizable.InsufficientCapacityException, thrown by Resizable.resize() if could not grow at all. - DynamicCluster catches NoMachinesAvailableException, and rethrows as InsufficientCapacityException in resize(). - AutoScalerPolicy catches InsufficientCapacityException, and sets insufficientCapacityHighWaterMark to record the max size it can get to. Does not try again to resize above that, unless the highWaterMark is explicitly cleared by reconfiguring that config value. - Tests: - Changes TestCluster to include history of sizes and desiredSizes - Changes TestCluster, so can throw InsufficientCapacityException when gets to a particular size. - Test for DynamicCluster throwing InsufficientCapacityException - Test for AutoScalerPolicyMetricTest, to not resize above the failure level again. - Test for AutoScalerPolicyNoMoreMachinesTest, for when BYON location has run out of machines in a DynamicCluster.
This is the historical incubator repo for Apache Brooklyn.
The sub-directories in this project correspond to multiple separate repositories in apache. (The link above to brooklyn/
started life exactly as a copy of brooklyn/
in this folder, as an uber-project for the others, including the server
and the ui
.)
The code can be built with a:
mvn clean install
This creates a build in usage/dist/target/brooklyn-dist
. Run with bin/brooklyn launch
.