Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created April 17, 2012 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahgittin/2405337 to your computer and use it in GitHub Desktop.
Save ahgittin/2405337 to your computer and use it in GitHub Desktop.
brooklyn rest xml sample 1
<app name="MyWebCluster">
<entity type="ControlledDynamicWebAppCluster" name="web">
<config name="war" value="classpath://hello-world-webapp.war"/>
<config name="httpPort" value="8080+"/>
<config name="jvmOpts" type="map">
<field name="brooklyn.example.db.url">
<source entity="mysql" sensor="url"/>
</field>
</config>
<policy type="Resizer">
<source entity="web" sensor="avgRequestsPerSec"/>
<metricRange min="10" max="100"/>
<sizeRange min="1" max="5"/>
</policy>
</entity>
<entity type="MySqlNode" name="mysql">
<config name="creationScriptUrl" value="classpath://visitors-creation-script.sql"/>
</entity>
</app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment