From 25f1916b6fb8321733982dafeeb047bc91e95f7c Mon Sep 17 00:00:00 2001 From: H-Shay Date: Fri, 13 May 2022 19:33:14 +0000 Subject: deploy: cde8af9a495cbc7f3d0207e3f17c37eddaee34e1 --- .../usage/configuration/config_documentation.html | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'develop/usage/configuration/config_documentation.html') diff --git a/develop/usage/configuration/config_documentation.html b/develop/usage/configuration/config_documentation.html index ab92ac22ce..10bcd93e9a 100644 --- a/develop/usage/configuration/config_documentation.html +++ b/develop/usage/configuration/config_documentation.html @@ -1049,14 +1049,32 @@ with intermittent connections, at the cost of higher memory usage. By default, this is zero, which means that sync responses are not cached at all.

+
  • +

    cache_autotuning and its sub-options max_cache_memory_usage, target_cache_memory_usage, and +min_cache_ttl work in conjunction with each other to maintain a balance between cache memory +usage and cache entry availability. You must be using jemalloc +to utilize this option, and all three of the options must be specified for this feature to work.

    + +
  • Example configuration:

    caches:
       global_factor: 1.0
       per_cache_factors:
         get_users_who_share_room_with_user: 2.0
    -  expire_caches: false
       sync_response_cache_duration: 2m
    +  cache_autotuning:
    +    max_cache_memory_usage: 1024M
    +    target_cache_memory_usage: 758M
    +    min_cache_ttl: 5m
     

    Reloading cache factors

    The cache factors (i.e. caches.global_factor and caches.per_cache_factors) may be reloaded at any time by sending a -- cgit 1.5.1