Enable support for clustering with Redis
This patch configure the HAProxy that will do the load balances between
all instances. It also provides a common configuration for Redis
instances.
diff --git a/reclass/storage/system/stacklight_monitor_cluster.yml b/reclass/storage/system/stacklight_monitor_cluster.yml
index 9df1a69..8c9a4c6 100644
--- a/reclass/storage/system/stacklight_monitor_cluster.yml
+++ b/reclass/storage/system/stacklight_monitor_cluster.yml
@@ -12,6 +12,7 @@
classes:
- cluster.${_param:cluster_name}.stacklight.monitor
params:
+ redis_cluster_role: 'master'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node01_address}
@@ -22,6 +23,7 @@
classes:
- cluster.${_param:cluster_name}.stacklight.monitor
params:
+ redis_cluster_role: 'slave'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node02_address}
@@ -32,6 +34,7 @@
classes:
- cluster.${_param:cluster_name}.stacklight.monitor
params:
+ redis_cluster_role: 'slave'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node03_address}
diff --git a/reclass/storage/system/stacklight_server_cluster.yml b/reclass/storage/system/stacklight_server_cluster.yml
index edb7a94..979906a 100644
--- a/reclass/storage/system/stacklight_server_cluster.yml
+++ b/reclass/storage/system/stacklight_server_cluster.yml
@@ -15,6 +15,7 @@
- system.grafana.client.single
- system.kibana.client.single
params:
+ redis_cluster_role: 'master'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node01_address}
@@ -25,6 +26,7 @@
classes:
- cluster.${_param:cluster_name}.stacklight.server
params:
+ redis_cluster_role: 'slave'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node02_address}
@@ -35,6 +37,7 @@
classes:
- cluster.${_param:cluster_name}.stacklight.server
params:
+ redis_cluster_role: 'slave'
salt_master_host: ${_param:reclass_config_master}
linux_system_codename: xenial
single_address: ${_param:stacklight_monitor_node03_address}