优化oss下载
This commit is contained in:
1 parent
97f7619bca
commit
1e361a44ca
13 files changed
+1738
-309
No files matched your search
@@ -293,3 +293,44 @@ justauth:
|
||||
client-id: 10**********6
|
||||
client-secret: 1f7d08**********5b7**********29e
|
||||
redirect-uri: ${justauth.address}/social-callback?source=gitea
|
||||
|
||||
system:
|
||||
file-cache:
|
||||
# 是否启用文件缓存
|
||||
enabled: true
|
||||
|
||||
# 最大缓存文件数量
|
||||
max-cache-size: 100
|
||||
|
||||
# 最大缓存大小(字节)- 500MB
|
||||
max-cache-size-bytes: 524288000
|
||||
|
||||
# 缓存过期时间(毫秒)- 30分钟
|
||||
expire-time-ms: 1800000
|
||||
|
||||
# 最大缓存单个文件大小(字节)- 50MB
|
||||
max-single-file-size: 52428800
|
||||
|
||||
# LRU淘汰比例(百分比)
|
||||
evict-ratio: 20
|
||||
|
||||
# 是否启用缓存统计
|
||||
enable-stats: true
|
||||
|
||||
# 缓存清理间隔(毫秒)- 5分钟
|
||||
cleanup-interval-ms: 300000
|
||||
# 配置说明:
|
||||
# 1. enabled: 控制是否启用文件缓存功能
|
||||
# 2. max-cache-size: 缓存的最大文件数量
|
||||
# 3. max-cache-size-bytes: 缓存的最大总大小(字节)
|
||||
# 4. expire-time-ms: 缓存条目的过期时间(毫秒)
|
||||
# 5. max-single-file-size: 单个文件的最大缓存大小(字节)
|
||||
# 6. evict-ratio: LRU淘汰时移除的条目比例(百分比)
|
||||
# 7. enable-stats: 是否启用缓存统计功能
|
||||
# 8. cleanup-interval-ms: 自动清理过期条目的间隔(毫秒)
|
||||
|
||||
# 性能优化建议:
|
||||
# - 对于内存充足的环境,可以适当增加 max-cache-size-bytes
|
||||
# - 对于频繁访问的小文件,可以增加 max-cache-size
|
||||
# - 对于大文件较多的环境,可以调整 max-single-file-size
|
||||
# - 对于访问频率较低的环境,可以适当减少 expire-time-ms
|
||||
Reference in new issue
Block a user