brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [5/6] incubator-brooklyn git commit: tidy of mongo yaml
Date Mon, 16 Mar 2015 15:51:05 GMT
tidy of mongo yaml


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/b92050cc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/b92050cc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/b92050cc

Branch: refs/heads/master
Commit: b92050cc7ba7001c456ffdc77fce7151501de922
Parents: 36edce2
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Wed Feb 4 12:33:14 2015 +0000
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Fri Mar 13 09:13:59 2015 +0000

----------------------------------------------------------------------
 .../src/test/resources/mongo-blueprint.yaml     |  2 +-
 .../src/test/resources/mongo-sharded.yaml       | 23 ++++++++++----------
 2 files changed, 13 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/b92050cc/usage/launcher/src/test/resources/mongo-blueprint.yaml
----------------------------------------------------------------------
diff --git a/usage/launcher/src/test/resources/mongo-blueprint.yaml b/usage/launcher/src/test/resources/mongo-blueprint.yaml
index 5833527..c63b8db 100644
--- a/usage/launcher/src/test/resources/mongo-blueprint.yaml
+++ b/usage/launcher/src/test/resources/mongo-blueprint.yaml
@@ -19,5 +19,5 @@
 name: Mongo3
 location: localhost
 services:
-- serviceType: brooklyn.entity.nosql.mongodb.MongoDBReplicaSet
+- type: brooklyn.entity.nosql.mongodb.MongoDBReplicaSet
   name: MongoDB Replica Set

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/b92050cc/usage/launcher/src/test/resources/mongo-sharded.yaml
----------------------------------------------------------------------
diff --git a/usage/launcher/src/test/resources/mongo-sharded.yaml b/usage/launcher/src/test/resources/mongo-sharded.yaml
index 4675884..dcf1f2b 100644
--- a/usage/launcher/src/test/resources/mongo-sharded.yaml
+++ b/usage/launcher/src/test/resources/mongo-sharded.yaml
@@ -16,35 +16,36 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-name: Humongous app
+name: Sharded MongoDB With Web App
 description: Auto-scaling web app backed by MongoDB
-origin: http://brooklyn.io
-location: localhost
+location: my-docker-cloud
 services:
-- serviceType: brooklyn.entity.nosql.mongodb.sharding.MongoDBShardedDeployment
-  id: shardeddeployment
-  name: Mongo Deploy
+- type: brooklyn.entity.nosql.mongodb.sharding.MongoDBShardedDeployment
+  id: mongo
+  name: Mongo DB Backend
   brooklyn.config:
     initialRouterClusterSize: 1
+    initialShardClusterSize: 5
+    shardReplicaSetSize: 3
     coLocatedRouterGroup: $brooklyn:component("webappcluster").attributeWhenReady("controlleddynamicwebappcluster.cluster")
 
-- serviceType: brooklyn.entity.webapp.ControlledDynamicWebAppCluster
+- type: brooklyn.entity.webapp.ControlledDynamicWebAppCluster
   id: webappcluster
   brooklyn.config:
     memberSpec:
       $brooklyn:entitySpec:
         type: brooklyn.entity.nosql.mongodb.sharding.CoLocatedMongoDBRouter
         brooklyn.enrichers:
-          - enricherType: brooklyn.enricher.basic.Propagator
+          - type: brooklyn.enricher.basic.Propagator
             brooklyn.config:
               enricher.propagating.sensorMapping:
                 $brooklyn:sensor("brooklyn.entity.webapp.jboss.JBoss7Server", "http.port"):
$brooklyn:sensor("brooklyn.entity.webapp.jboss.JBoss7Server", "http.port") 
-              enricher.producer: $brooklyn:component("child", "thewebserver")
+              enricher.producer: $brooklyn:component("child", "appserver")
         brooklyn.config:
-          shardedDeployment: $brooklyn:component("shardeddeployment")
+          shardedDeployment: $brooklyn:component("mongo")
           siblingSpecs:
           - $brooklyn:entitySpec:
-              id: thewebserver
+              id: appserver
               type: brooklyn.entity.webapp.jboss.JBoss7Server
               brooklyn.config:
                 war: "classpath://brooklyn-example-hello-world-sql-webapp.war"


Mime
View raw message