mediawiki: bump db RAM

This commit is contained in:
wizzdom 2025-02-28 00:58:55 +00:00
parent b58c812a3e
commit cfaf7a4309
No known key found for this signature in database
GPG key ID: EEB7D796F4B09F07

View file

@ -1,6 +1,6 @@
job "mediawiki" { job "mediawiki" {
datacenters = ["aperture"] datacenters = ["aperture"]
type = "service" type = "service"
meta { meta {
domain = "wiki.redbrick.dcu.ie" domain = "wiki.redbrick.dcu.ie"
@ -27,10 +27,10 @@ job "mediawiki" {
port = "http" port = "http"
check { check {
type = "http" type = "http"
path = "/Main_Page" path = "/Main_Page"
interval = "10s" interval = "10s"
timeout = "5s" timeout = "5s"
} }
tags = [ tags = [
@ -61,11 +61,11 @@ job "mediawiki" {
] ]
} }
resources { resources {
cpu = 200 cpu = 200
memory = 100 memory = 100
} }
template { template {
data = <<EOH data = <<EOH
# user www-data www-data; # user www-data www-data;
error_log /dev/stderr error; error_log /dev/stderr error;
events { events {
@ -139,9 +139,9 @@ EOH
} }
resources { resources {
cpu = 4000 cpu = 4000
memory = 1200 memory = 1200
} }
template { template {
data = <<EOH data = <<EOH
@ -179,7 +179,7 @@ EOH
} }
template { template {
data = file("LocalSettings.php") data = file("LocalSettings.php")
destination = "local/LocalSettings.php" destination = "local/LocalSettings.php"
} }
} }
@ -189,10 +189,10 @@ EOH
port = "db" port = "db"
check { check {
name = "mariadb_probe" name = "mariadb_probe"
type = "tcp" type = "tcp"
interval = "10s" interval = "10s"
timeout = "2s" timeout = "2s"
} }
} }
@ -237,9 +237,9 @@ EOH
} }
resources { resources {
cpu = 800 cpu = 800
memory = 1200 memory = 2500
} }
template { template {
data = <<EOH data = <<EOH
@ -250,7 +250,7 @@ MYSQL_RANDOM_ROOT_PASSWORD=yes
EOH EOH
destination = "local/.env" destination = "local/.env"
env = true env = true
} }
} }
} }