Add all-to-all seed settings in cassandra

Change-Id: I76dda602ffb36c713725135d6f537aa2d2414c6a
This commit is contained in:
Przemysław 2016-09-27 18:18:25 +02:00
parent 8f3e9ade00
commit f4f9752f6a
3 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ class contrail::database {
value => '10'
}
if roles_include($contrail::contrail_db_roles) {
$cassandra_ips = $::contrail::contrail_db_ips
$cassandra_seeds = $contrail::primary_contrail_db_ip
$cluster_name = 'Contrail'
@ -58,6 +59,7 @@ class contrail::database {
],
}
} elsif roles_include($contrail::analytics_db_roles) {
$cassandra_ips = $::contrail::analytics_db_ips
$cassandra_seeds = $contrail::primary_analytics_db_ip
$cluster_name = 'Analytics'
}

View File

@ -270,7 +270,7 @@ seed_provider:
parameters:
# seeds is actually a comma-delimited list of addresses.
# Ex: "<ip1>,<ip2>,<ip3>"
- seeds: "<%= @cassandra_seeds.join(',') %>"
- seeds: "<%= @cassandra_ips.join(',') %>"
# For workloads with more data than can fit in memory, Cassandra's
# bottleneck will be reads that need to fetch data from

View File

@ -198,6 +198,7 @@
type: puppet
version: 2.0.0
groups: [primary-contrail-db, primary-contrail-analytics-db]
reexecute_on: [deploy_changes]
required_for: [deploy_end]
requires: [contrail-utils]
parameters:
@ -223,6 +224,7 @@
type: puppet
version: 2.0.0
groups: [contrail-db, contrail-analytics-db]
reexecute_on: [deploy_changes]
required_for: [deploy_end]
requires: [contrail-utils]
cross-depends: