Reduce max_connections and innodb_buffer_pool_size for K8S envs
To reduce RAM usage , as far as Galera is used only for Grafana
in kubernetes environments.
Change-Id: I6e45e2e4ce9a67d5c20539049e97807338d4f49e
diff --git a/classes/cluster/sl_k8s_calico/stacklight/server.yml b/classes/cluster/sl_k8s_calico/stacklight/server.yml
index 4295be4..201f5ee 100644
--- a/classes/cluster/sl_k8s_calico/stacklight/server.yml
+++ b/classes/cluster/sl_k8s_calico/stacklight/server.yml
@@ -53,6 +53,9 @@
cluster_node02_address: ${_param:stacklight_monitor_node02_address}
cluster_node03_hostname: ${_param:stacklight_monitor_node03_hostname}
cluster_node03_address: ${_param:stacklight_monitor_node03_address}
+ # Galera
+ galera_innodb_buffer_pool_size: 1024M
+ galera_max_connections: 200
# Kibana
kibana_elasticsearch_host: ${_param:cluster_vip_address}
# Galera
diff --git a/classes/cluster/sl_k8s_contrail/stacklight/server.yml b/classes/cluster/sl_k8s_contrail/stacklight/server.yml
index 8b30a14..89ae877 100644
--- a/classes/cluster/sl_k8s_contrail/stacklight/server.yml
+++ b/classes/cluster/sl_k8s_contrail/stacklight/server.yml
@@ -43,6 +43,8 @@
keepalived_prometheus_vip_interface: ens4
# Galera
openstack_version: ocata
+ galera_innodb_buffer_pool_size: 1024M
+ galera_max_connections: 200
# Grafana
grafana_database_type: mysql
grafana_database_host: ${_param:cluster_vip_address}
diff --git a/classes/cluster/virtual-mcp11-k8s-calico-dyn/stacklight/server.yml b/classes/cluster/virtual-mcp11-k8s-calico-dyn/stacklight/server.yml
index 73f6dc3..a54bad3 100644
--- a/classes/cluster/virtual-mcp11-k8s-calico-dyn/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-k8s-calico-dyn/stacklight/server.yml
@@ -48,6 +48,8 @@
kibana_elasticsearch_host: ${_param:cluster_vip_address}
# Galera
openstack_version: newton
+ galera_innodb_buffer_pool_size: 1024M
+ galera_max_connections: 200
# Grafana
docker_grafana_replicas: 1
grafana_database_type: mysql
diff --git a/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml b/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
index fc1dc29..efb1a16 100644
--- a/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-k8s-calico/stacklight/server.yml
@@ -55,6 +55,8 @@
kibana_elasticsearch_host: ${_param:cluster_vip_address}
# Galera
openstack_version: newton
+ galera_innodb_buffer_pool_size: 1024M
+ galera_max_connections: 200
# Grafana
grafana_database_type: mysql
grafana_database_host: ${_param:cluster_vip_address}
diff --git a/classes/cluster/virtual-mcp11-k8s-contrail/stacklight/server.yml b/classes/cluster/virtual-mcp11-k8s-contrail/stacklight/server.yml
index 4a6d64b..65ee4aa 100644
--- a/classes/cluster/virtual-mcp11-k8s-contrail/stacklight/server.yml
+++ b/classes/cluster/virtual-mcp11-k8s-contrail/stacklight/server.yml
@@ -44,6 +44,8 @@
keepalived_prometheus_vip_interface: ens4
# Galera
openstack_version: newton
+ galera_innodb_buffer_pool_size: 1024M
+ galera_max_connections: 200
# Grafana
grafana_database_type: mysql
grafana_database_host: ${_param:cluster_vip_address}