Run mysql on the primary storage machine.
This commit is contained in:
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user