Skip to content

Commit

Permalink
Add new Riak application and update Docker Cloud blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
grkvlt committed Nov 5, 2014
1 parent 0d1f437 commit a0fef85
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ classes

*.log*
obj

*.swp
.DS_Store
7 changes: 3 additions & 4 deletions examples/src/main/assembly/files/blueprints/docker-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ services:
install.version: "1.2"
entity.dynamicLocation.name: "my-docker-cloud"
docker.host.securityGroup: "docker"
docker.host.cluster.initial.size: 1
docker.host.cluster.initial.size: 2
docker.host.register: false
docker.policy.ha.enable: true
docker.host.flags:
minRam: 3000
minCores: 2
minRam: 8000
docker.container.strategies:
- $brooklyn:object:
type: "brooklyn.location.docker.strategy.BreadthFirstPlacementStrategy"
brooklyn.config:
maxContainers: 16
maxContainers: 8
- $brooklyn:object:
type: "brooklyn.location.docker.strategy.CpuUsagePlacementStrategy"
brooklyn.config:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2014 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

id: riak-webapp-cluster
name: Riak Cluster with Webapp Cluster
locations:
- my-docker-cloud
origin: "https://github.com/apache/incubator-brooklyn/"
services:
- type: brooklyn.entity.nosql.riak.RiakCluster
initialSize: 5
id: cluster
brooklyn.config:
install.version: 2.0.0
- type: brooklyn.entity.webapp.ControlledDynamicWebAppCluster
name: Web Cluster
brooklyn.config:
initialSize: 3
controlleddynamicwebappcluster.controllerSpec:
$brooklyn:entitySpec:
type: brooklyn.entity.proxy.nginx.NginxController
brooklyn.config:
member.sensor.hostname: "host.subnet.hostname"
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")

0 comments on commit a0fef85

Please sign in to comment.