brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorb...@apache.org
Subject [1/3] incubator-brooklyn git commit: ServiceFailureDetector is an enricher.
Date Thu, 15 Jan 2015 15:19:24 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master f72d9aa7c -> 663f67336


ServiceFailureDetector is an enricher.


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

Branch: refs/heads/master
Commit: dd5c05a7afb7eff11d278f0aedeab1d17577766b
Parents: 05f087f
Author: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Authored: Thu Jan 15 14:41:05 2015 +0000
Committer: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Committed: Thu Jan 15 14:58:12 2015 +0000

----------------------------------------------------------------------
 .../yaml/example_yaml/vanilla-bash-netcat-w-client.yaml      | 8 +++++---
 .../src/test/resources/vanilla-bash-netcat-w-client.yaml     | 2 ++
 2 files changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/dd5c05a7/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml
----------------------------------------------------------------------
diff --git a/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml b/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml
index 50051db..85a334a 100644
--- a/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml
+++ b/docs/guide/yaml/example_yaml/vanilla-bash-netcat-w-client.yaml
@@ -12,12 +12,14 @@ services:
     echo hello | nc -l 4321 >> server-input &
     echo $! > $PID_FILE
 
-  brooklyn.policies:
-  # restarter and 
-  - policyType: brooklyn.policy.ha.ServiceFailureDetector
+  # a failure detector and a service restarter work together
+  brooklyn.enrichers:
+  - enricherType: brooklyn.policy.ha.ServiceFailureDetector
     brooklyn.config:
       # wait 15s after service fails before propagating failure
       serviceFailedStabilizationDelay: 15s
+
+  brooklyn.policies:
   - policyType: brooklyn.policy.ha.ServiceRestarter
     brooklyn.config:
       # repeated failures in a time window can cause the restarter to abort,

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/dd5c05a7/usage/camp/src/test/resources/vanilla-bash-netcat-w-client.yaml
----------------------------------------------------------------------
diff --git a/usage/camp/src/test/resources/vanilla-bash-netcat-w-client.yaml b/usage/camp/src/test/resources/vanilla-bash-netcat-w-client.yaml
index 9c12eee..d1bc4d4 100644
--- a/usage/camp/src/test/resources/vanilla-bash-netcat-w-client.yaml
+++ b/usage/camp/src/test/resources/vanilla-bash-netcat-w-client.yaml
@@ -32,11 +32,13 @@ services:
     echo hello | nc -l 4321 >> server-input &
     echo $! > $PID_FILE
 
+  # a failure detector and a service restarter work together
   brooklyn.enrichers:
   - type: brooklyn.policy.ha.ServiceFailureDetector
     brooklyn.config:
       # wait 15s after service fails before propagating failure
       serviceFailedStabilizationDelay: 15s
+
   brooklyn.policies:
   - policyType: brooklyn.policy.ha.ServiceRestarter
     brooklyn.config:


Mime
View raw message