Repository: incubator-brooklyn Updated Branches: refs/heads/master 3465b52ea -> 89b621b1b
some riak examples Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/89b621b1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/89b621b1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/89b621b1 Branch: refs/heads/master Commit: 89b621b1b2eeabc631cea77f10e9ad626ee072d6 Parents: 3465b52 Author: Alex Heneveld <[email protected]> Authored: Tue Mar 24 09:40:32 2015 +0000 Committer: Alex Heneveld <[email protected]> Committed: Tue Mar 24 09:40:32 2015 +0000 ---------------------------------------------------------------------- .../brooklyn/entity/nosql/riak/riak.md | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/89b621b1/software/nosql/src/main/resources/brooklyn/entity/nosql/riak/riak.md ---------------------------------------------------------------------- diff --git a/software/nosql/src/main/resources/brooklyn/entity/nosql/riak/riak.md b/software/nosql/src/main/resources/brooklyn/entity/nosql/riak/riak.md new file mode 100644 index 0000000..0323b40 --- /dev/null +++ b/software/nosql/src/main/resources/brooklyn/entity/nosql/riak/riak.md @@ -0,0 +1,49 @@ +# Riak Examples + +Here is a selection of examples showing how to deploy Riak. + + +### A Single-Node Deployment + +``` +location: YOUR_CLOUD +services: +- type: brooklyn.entity.nosql.riak.RiakNode +``` + + +### A Single-Node Deployment + +``` +location: YOUR_CLOUD +services: +- type: brooklyn.entity.nosql.riak.RiakNode +``` + + +### A Cluster + +``` +services: +- type: brooklyn.entity.nosql.riak.RiakCluster + location: YOUR_CLOUD + initialSize: 5 +``` + + +### A Cluster at a Specific Version with a Web App + +``` +services: +- type: brooklyn.entity.nosql.riak.RiakCluster + id: cluster + brooklyn.config: + initialSize: 2 + install.version: 2.0.0 +- type: brooklyn.entity.webapp.ControlledDynamicWebAppCluster + brooklyn.config: + initialSize: 2 + wars.root: https://s3-eu-west-1.amazonaws.com/brooklyn-clocker/brooklyn-example-hello-world-sql-webapp.war + java.sysprops: + brooklyn.example.riak.nodes: $brooklyn:component("cluster").attributeWhenReady("riak.cluster.nodeList") +``` \ No newline at end of file
