Created
July 1, 2014 08:55
-
-
Save aledsage/a8795292407d255e1b0b to your computer and use it in GitHub Desktop.
Brooklyn yaml: simple cluster with policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location: localhost | |
| services: | |
| - type: brooklyn.entity.group.DynamicCluster | |
| brooklyn.config: | |
| initialSize: 2 | |
| memberSpec: | |
| $brooklyn:entitySpec: | |
| type: brooklyn.entity.basic.EmptySoftwareProcess | |
| brooklyn.policies: | |
| - policyType: brooklyn.policy.autoscaling.AutoScalerPolicy | |
| brooklyn.config: | |
| metric: $brooklyn:sensor("brooklyn.entity.webapp.DynamicWebAppCluster", "webapp.reqs.perSec.windowed.perNode") | |
| metricLowerBound: 10 | |
| metricUpperBound: 100 | |
| minPoolSize: 1 | |
| maxPoolSize: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment