Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/1116#discussion_r48308809
  
    --- Diff: docs/guide/start/policies-cli.md ---
    @@ -0,0 +1,172 @@
    +---
    +title: Getting Started - Policies
    +title_in_menu: Policies
    +layout: website-normal
    +menu-parent: index-cli.md
    +---
    +
    +
    +
    +
    +## A Clustered Example
    +
    +We'll now look at a more complex example that better shows the 
capabilities of Brooklyn. 
    +
    +We'll start by deploying an application via YAML blueprint consisting of 
the following layers.
    +
    +- A dynamically scalable Web App Cluster
    +- A MySQL DB
    +
    +
    +Copy the blueprint below into a text file, "mycluster.yaml", in your 
workspace, but *before* you create an application 
    +with it, again modify the YAML to specify the location where the 
application will be deployed.  
    +You will need at least five machines for this example, one for the DB, and 
four for the tomcats 
    +(but you can reduce this by changing the "maxPoolSize" below.
    +
    +{% highlight yaml %}
    +name: cluster
    +
    +location:
    +  tbd
    +
    +services:
    +- serviceType: brooklyn.entity.webapp.ControlledDynamicWebAppCluster
    +  name: webcluster
    +  brooklyn.config:
    +    wars.root: 
http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0-M2/brooklyn-example-hello-world-sql-webapp-0.6.0-M2.war
    +    http.port: 9280+
    +    proxy.http.port: 9210+
    +    java.sysprops: 
    +      brooklyn.example.db.url: 
$brooklyn:formatString("jdbc:%s%s?user=%s\\&password=%s",
    +         component("db").attributeWhenReady("datastore.url"), "visitors", 
"brooklyn", "br00k11n")
    +  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: 4
    +      
    +- serviceType: brooklyn.entity.database.mysql.MySqlNode
    +  id: db
    +  name: mysql
    +  location: localhost
    --- End diff --
    
    This is a cut-and-paste error, it shouldn't have a location at all.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to