From d8a281101ca4af741de44702a58d0f26f06f6d7c Mon Sep 17 00:00:00 2001 From: Gaius Date: Fri, 27 Dec 2024 11:51:21 +0800 Subject: [PATCH] feat: change LFU size to 50000 in manager cache (#340) Signed-off-by: Gaius --- charts/dragonfly/Chart.yaml | 4 ++-- charts/dragonfly/README.md | 2 +- charts/dragonfly/values.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/dragonfly/Chart.yaml b/charts/dragonfly/Chart.yaml index 277b393b..9afe0a26 100644 --- a/charts/dragonfly/Chart.yaml +++ b/charts/dragonfly/Chart.yaml @@ -3,7 +3,7 @@ name: dragonfly description: Dragonfly is an intelligent P2P based image and file distribution system icon: https://raw.githubusercontent.com/dragonflyoss/dragonfly/main/docs/images/logo/dragonfly.svg type: application -version: 1.2.27 +version: 1.2.28 appVersion: 2.1.65 keywords: - dragonfly @@ -27,7 +27,7 @@ sources: annotations: artifacthub.io/changes: | - - Rename repo Dragonfly2 to dragonfly. + - Change LFU size to 50000 in the manager cache. artifacthub.io/links: | - name: Chart Source diff --git a/charts/dragonfly/README.md b/charts/dragonfly/README.md index be64260e..5984cd91 100644 --- a/charts/dragonfly/README.md +++ b/charts/dragonfly/README.md @@ -244,7 +244,7 @@ helm delete dragonfly --namespace dragonfly-system | manager.config.auth.jwt.maxRefresh | string | `"48h"` | MaxRefresh field allows clients to refresh their token until MaxRefresh has passed, default duration is two days. | | manager.config.auth.jwt.realm | string | `"Dragonfly"` | Realm name to display to the user, default value is Dragonfly. | | manager.config.auth.jwt.timeout | string | `"48h"` | Timeout is duration that a jwt token is valid, default duration is two days. | -| manager.config.cache.local.size | int | `200000` | Size of LFU cache. | +| manager.config.cache.local.size | int | `50000` | Size of LFU cache. | | manager.config.cache.local.ttl | string | `"3m"` | Local cache TTL duration. | | manager.config.cache.redis.ttl | string | `"5m"` | Redis cache TTL duration. | | manager.config.console | bool | `true` | Console shows log on console. | diff --git a/charts/dragonfly/values.yaml b/charts/dragonfly/values.yaml index 43d73718..7e17be3c 100644 --- a/charts/dragonfly/values.yaml +++ b/charts/dragonfly/values.yaml @@ -177,7 +177,7 @@ manager: ttl: 5m local: # -- Size of LFU cache. - size: 200000 + size: 50000 # -- Local cache TTL duration. ttl: 3m job: