commit 59f1fafaddbeb2bdfeb282635b212353ea399338 parent 6b74dd7476878d0c1c291d28f1cd09a18674770c Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 25 Aug 2023 14:45:50 +0200 Reduce ram usage of patroni pg Diffstat:
| M | nixos/worker-1/configuration.nix | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -496,7 +496,12 @@ postgresqlPackage = pkgs.postgresql_14; settings = { - postgresql.listen = lib.mkForce "127.0.0.1,100.64.0.1:5432"; + postgresql = { + listen = lib.mkForce "127.0.0.1,100.64.0.1:5432"; + parameters = { + shared_buffers = "8GB"; + }; + }; etcd = { hosts = [ "100.64.0.3:2379"