resilience improvements: MySQL anti-affinity comment, descheduler 5min, prometheus termination 60s
- MySQL InnoDB: keep required anti-affinity but document why (2/3 members OK during node loss) - Descheduler: increase frequency from hourly to every 5 min for faster rebalancing - Prometheus: set terminationGracePeriodSeconds=60 to prevent drain timeout [ci skip]
This commit is contained in:
parent
3eb15149e1
commit
c8be07c403
3 changed files with 6 additions and 1 deletions
|
|
@ -237,6 +237,10 @@ resource "helm_release" "mysql_cluster" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
podAntiAffinity = {
|
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 = [{
|
requiredDuringSchedulingIgnoredDuringExecution = [{
|
||||||
labelSelector = {
|
labelSelector = {
|
||||||
matchLabels = {
|
matchLabels = {
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespaceOverride: ""
|
||||||
commonLabels: {}
|
commonLabels: {}
|
||||||
|
|
||||||
cronJobApiVersion: "batch/v1"
|
cronJobApiVersion: "batch/v1"
|
||||||
schedule: "0 * * * *"
|
schedule: "*/5 * * * *"
|
||||||
suspend: false
|
suspend: false
|
||||||
# startingDeadlineSeconds: 200
|
# startingDeadlineSeconds: 200
|
||||||
successfulJobsHistoryLimit: 10
|
successfulJobsHistoryLimit: 10
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,7 @@ server:
|
||||||
memory: 4Gi
|
memory: 4Gi
|
||||||
livenessProbeInitialDelay: 300
|
livenessProbeInitialDelay: 300
|
||||||
readinessProbeInitialDelay: 60
|
readinessProbeInitialDelay: 60
|
||||||
|
terminationGracePeriodSeconds: 60
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
baseURL: "https://prometheus.viktorbarzin.me"
|
baseURL: "https://prometheus.viktorbarzin.me"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue