matrix-synapse tuning
This commit is contained in:
parent
4403887945
commit
68a274667d
|
@ -6,6 +6,12 @@ in
|
|||
{
|
||||
environment.systemPackages = [ pkgs.matrix-synapse-tools.rust-synapse-compress-state ];
|
||||
systemd.services = {
|
||||
# use jemalloc to improve the memory situation with synapse
|
||||
matrix-synapse.environment = {
|
||||
LD_PRELOAD = "${pkgs.jemalloc}/lib/libjemalloc.so";
|
||||
SYNAPSE_CACHE_FACTOR = "1.0";
|
||||
LimitNOFILE = "4096";
|
||||
};
|
||||
synapse-cleanup = {
|
||||
serviceConfig = {
|
||||
ExecStart = pkgs.writeHaskell "synapse-cleanup"
|
||||
|
|
Loading…
Reference in a new issue