Skip to content

Instantly share code, notes, and snippets.

@ahgittin
Created April 17, 2012 11:15
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/2405339 to your computer and use it in GitHub Desktop.
Save ahgittin/2405339 to your computer and use it in GitHub Desktop.
brooklyn rest json sample 1
{ "app": {
"name": "MyWebCluster",
"entities": [
{ "name": "web",
"type": "ControlledDynamicWebAppCluster",
"config": {
"war": "classpath://hello-world-webapp.war",
"httpPort": "8080+",
"jvmOpts": {
"brooklyn.example.db.url": { "source": { "entity": "mysql", "sensor": "url" } }
} },
"policies": [
{ "type": "Resizer",
"source": { "entity": "web", "sensor": "avgRequestsPerSec" },
"metricRange": { "min": "10", "max": "100" },
"sizeRange": { "min": "1", "max": "5" } } ]
},
{ "name": "mysql",
"type": "MySqlNode",
"config": { "creationScriptUrl": "classpath://visitors-creation-script.sql" }
} ]
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment