nixos/solitary: Tune PostgreSQL settings
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-11-02 16:36:10 +01:00
parent d6c769d236
commit 8ce932e9af
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -529,6 +529,19 @@ in {
rum rum
]; ];
settings = {
max_connections = 128;
shared_buffers = "768MB";
huge_pages = "try";
huge_page_size = "2MB";
work_mem = "16MB";
effective_io_concurrency = 128;
wal_compression = "zstd";
};
initialScript = pkgs.writeText "init.psql" '' initialScript = pkgs.writeText "init.psql" ''
CREATE ROLE "matrix-synapse"; CREATE ROLE "matrix-synapse";
CREATE DATABASE "matrix-synapse" OWNER "matrix-synapse" CREATE DATABASE "matrix-synapse" OWNER "matrix-synapse"