diff --git a/stacks/dbaas/modules/dbaas/main.tf b/stacks/dbaas/modules/dbaas/main.tf index 078cf571..79489348 100644 --- a/stacks/dbaas/modules/dbaas/main.tf +++ b/stacks/dbaas/modules/dbaas/main.tf @@ -237,6 +237,10 @@ resource "helm_release" "mysql_cluster" { } } podAntiAffinity = { + # Required anti-affinity: MySQL pods MUST be on different nodes. + # During node loss, one pod will be Pending — this is acceptable because + # InnoDB Cluster operates with 2/3 members (OK_NO_TOLERANCE). + # The descheduler (every 5 min) handles violations if any occur. requiredDuringSchedulingIgnoredDuringExecution = [{ labelSelector = { matchLabels = { diff --git a/stacks/descheduler/values.yaml b/stacks/descheduler/values.yaml index 771bf649..dca0d0fc 100644 --- a/stacks/descheduler/values.yaml +++ b/stacks/descheduler/values.yaml @@ -52,7 +52,7 @@ namespaceOverride: "" commonLabels: {} cronJobApiVersion: "batch/v1" -schedule: "0 * * * *" +schedule: "*/5 * * * *" suspend: false # startingDeadlineSeconds: 200 successfulJobsHistoryLimit: 10 diff --git a/stacks/platform/modules/monitoring/prometheus_chart_values.tpl b/stacks/platform/modules/monitoring/prometheus_chart_values.tpl index d536a1da..4968ff61 100755 --- a/stacks/platform/modules/monitoring/prometheus_chart_values.tpl +++ b/stacks/platform/modules/monitoring/prometheus_chart_values.tpl @@ -169,6 +169,7 @@ server: memory: 4Gi livenessProbeInitialDelay: 300 readinessProbeInitialDelay: 60 + terminationGracePeriodSeconds: 60 strategy: type: Recreate baseURL: "https://prometheus.viktorbarzin.me"