summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/caches.nix
blob: 16fe0fc8f888154ca556fb58bf17e136befd7373 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  gc_min_interval = [
    "15m"
    "30m"
    "60m"
  ];
  gc_thresholds = [
    10000
    5000
    2500
  ];
  event_cache_size = "12000K"; # defaults to 10K
  caches = {
    global_factor = 500000.0;
    cache_entry_ttl = "24h";
    expire_caches = false;
    sync_response_cache_duration = "15s";
    cache_autotuning = {
      max_cache_memory_usage = "65536M";
      target_cache_memory_usage = "32768M";
      min_cache_ttl = "6h";
    };
  };
}