Run mysql on the primary storage machine.

This commit is contained in:
2025-10-22 13:20:13 +01:00
parent 967ff34a51
commit 65835e1ed0
2 changed files with 15 additions and 7 deletions

View File

@@ -6,6 +6,12 @@ job "mysql" {
}
group "db" {
# Run on primary storage node (zippy) for local disk performance
constraint {
attribute = "${meta.storage_role}"
value = "primary"
}
network {
port "db" {
static = 3306
@@ -19,13 +25,9 @@ job "mysql" {
config {
image = "mysql:9.4"
args = [
# 300M, up from default of 100M
"--innodb-redo-log-capacity=314572800",
]
ports = ["db"]
volumes = [
"/data/compute/appdata/mysql:/var/lib/mysql",
"/data/services/mysql:/var/lib/mysql",
]
}