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,10 +1,16 @@
{ 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 {
volume_name = "matrix-synapse";
access_mode = "multi-node-multi-writer";
@ -17,7 +23,7 @@ in
volume_name = "matrix-postgresql";
access_mode = "single-node-writer";
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"];
};