Use SSD storage for Synapse database

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2024-01-09 13:05:40 +01:00
parent baace089a5
commit a32af93084
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -1,24 +1,30 @@
{ config', config, elib, vars, ... }:
let
inherit (elib)
nfsVolume
nomadJob;
in
{ {
config',
config,
elib,
vars,
...
}: let
inherit
(elib)
nfsVolume
nomadJob
;
in {
resource."nomad_volume"."matrix-synapse" = nfsVolume { resource."nomad_volume"."matrix-synapse" = nfsVolume {
volume_name = "matrix-synapse"; volume_name = "matrix-synapse";
access_mode = "multi-node-multi-writer"; access_mode = "multi-node-multi-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/synapse"; share = "/mnt/kyle/infrastructure/matrix/synapse";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-postgresql" = nfsVolume { resource."nomad_volume"."matrix-postgresql" = nfsVolume {
volume_name = "matrix-postgresql"; volume_name = "matrix-postgresql";
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/postgresql"; share = "/mnt/jimmy/infrastructure/matrix/postgresql";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-registrations" = nfsVolume { resource."nomad_volume"."matrix-registrations" = nfsVolume {
@ -26,7 +32,7 @@ in
access_mode = "multi-node-multi-writer"; access_mode = "multi-node-multi-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/registrations"; share = "/mnt/kyle/infrastructure/matrix/registrations";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-mautrix-discord" = nfsVolume { resource."nomad_volume"."matrix-mautrix-discord" = nfsVolume {
@ -34,7 +40,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/mautrix-discord"; share = "/mnt/kyle/infrastructure/matrix/mautrix-discord";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-mautrix-slack" = nfsVolume { resource."nomad_volume"."matrix-mautrix-slack" = nfsVolume {
@ -42,7 +48,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/mautrix-slack"; share = "/mnt/kyle/infrastructure/matrix/mautrix-slack";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-mautrix-facebook" = nfsVolume { resource."nomad_volume"."matrix-mautrix-facebook" = nfsVolume {
@ -50,7 +56,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/mautrix-facebook"; share = "/mnt/kyle/infrastructure/matrix/mautrix-facebook";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-mautrix-signal" = nfsVolume { resource."nomad_volume"."matrix-mautrix-signal" = nfsVolume {
@ -58,7 +64,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/mautrix-signal"; share = "/mnt/kyle/infrastructure/matrix/mautrix-signal";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-signald" = nfsVolume { resource."nomad_volume"."matrix-signald" = nfsVolume {
@ -66,7 +72,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/signald"; share = "/mnt/kyle/infrastructure/matrix/signald";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."nomad_volume"."matrix-redis" = nfsVolume { resource."nomad_volume"."matrix-redis" = nfsVolume {
@ -74,7 +80,7 @@ in
access_mode = "single-node-writer"; access_mode = "single-node-writer";
server = "blowhole.hosts.in.redalder.org"; server = "blowhole.hosts.in.redalder.org";
share = "/mnt/kyle/infrastructure/matrix/redis"; share = "/mnt/kyle/infrastructure/matrix/redis";
mount_flags = [ "hard" "vers=4.2" "rsize=16384" "wsize=16384" "async" ]; mount_flags = ["hard" "vers=4.2" "rsize=16384" "wsize=16384" "async"];
}; };
resource."vault_policy"."matrix-mautrix-signal-policy" = { resource."vault_policy"."matrix-mautrix-signal-policy" = {