summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/caches.nix
blob: 9fa735e0c926edcdebf64817c080be047e14597d (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 = true;
    sync_response_cache_duration = "15m";
    cache_autotuning = {
      max_cache_memory_usage = "65536M";
      target_cache_memory_usage = "32768M";
      min_cache_ttl = "6h";
    };
  };
}