Navigation Menu

Skip to content

Commit

Permalink
adapt config for cluster bootstrapping
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Maute <stefan.maute@bosch-si.com>
  • Loading branch information
Stefan Maute committed Jul 2, 2018
1 parent 1c9d6a9 commit 24e83d0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 25 deletions.
Expand Up @@ -133,10 +133,6 @@ akka {
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

stable-margin = 5 seconds

// TODO only for testing
required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

Expand Down
Expand Up @@ -151,10 +151,6 @@ akka {
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

stable-margin = 5 seconds

// TODO only for testing
required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

Expand Down
10 changes: 5 additions & 5 deletions services/gateway/starter/src/main/resources/gateway.conf
Expand Up @@ -198,12 +198,12 @@ akka {
cluster.bootstrap {

contact-point-discovery {
service-name = "policies"
service-namespace = "default.svc.cluster.local"
stable-margin = 5 seconds
service-name = "ditto-cluster"
service-name = ${?CLUSTER_BS_SERVICE_NAME}
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?REQUIRED_CONTACT_POINTS}
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

contact-point {
Expand Down
10 changes: 5 additions & 5 deletions services/policies/starter/src/main/resources/policies.conf
Expand Up @@ -143,12 +143,12 @@ akka {
cluster.bootstrap {

contact-point-discovery {
service-name = "policies"
service-namespace = "default.svc.cluster.local"
stable-margin = 5 seconds
service-name = "ditto-cluster"
service-name = ${?CLUSTER_BS_SERVICE_NAME}
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?REQUIRED_CONTACT_POINTS}
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

contact-point {
Expand Down
4 changes: 1 addition & 3 deletions services/things/starter/src/main/resources/things.conf
Expand Up @@ -148,10 +148,8 @@ akka {
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

stable-margin = 5 seconds
# stable-margin = 10 seconds

// TODO only for testing
required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

Expand Down
Expand Up @@ -198,10 +198,6 @@ akka {
service-namespace = ${?CLUSTER_BS_SERVICE_NAMESPACE}
effective-name = ${?CLUSTER_BS_EFFECTIVE_NAME}

stable-margin = 5 seconds

// TODO only for testing
required-contact-point-nr = 1 // minimun number of nodes to bootstrap the cluster
required-contact-point-nr = ${?CLUSTER_BS_REQUIRED_CONTACTS}
}

Expand Down

0 comments on commit 24e83d0

Please sign in to comment.