mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Use SSD storage for Synapse database
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
baace089a5
commit
a32af93084
|
@ -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"];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue