feat(archive-cache): objectstore now makes bucket required, and use shards as folders inside it

This commit is contained in:
RhodeCode Admin 2024-06-19 12:34:05 +02:00
parent 5206570f1b
commit eab897ac5c
7 changed files with 75 additions and 62 deletions

View file

@ -311,10 +311,9 @@ archive_cache.objectstore.secret = secret
; default is 8 shards
archive_cache.objectstore.bucket_shards = 8
; a top-level bucket to put all other sharded buckets in
; in case it's empty all buckets will be created in top-level (not recommended)
; objects will be stored in rhodecode-archive-cache/shard-bucket-N based on the bucket_shards number
archive_cache.objectstore.bucket_root = rhodecode-archive-cache
; a top-level bucket to put all other shards in
; objects will be stored in rhodecode-archive-cache/shard-N based on the bucket_shards number
archive_cache.objectstore.bucket = rhodecode-archive-cache
; if true, this cache will try to retry with retry_attempts=N times waiting retry_backoff time
archive_cache.objectstore.retry = false

View file

@ -279,10 +279,9 @@ archive_cache.objectstore.secret = secret
; default is 8 shards
archive_cache.objectstore.bucket_shards = 8
; a top-level bucket to put all other sharded buckets in
; in case it's empty all buckets will be created in top-level (not recommended)
; objects will be stored in rhodecode-archive-cache/shard-bucket-N based on the bucket_shards number
archive_cache.objectstore.bucket_root = rhodecode-archive-cache
; a top-level bucket to put all other shards in
; objects will be stored in rhodecode-archive-cache/shard-N based on the bucket_shards number
archive_cache.objectstore.bucket = rhodecode-archive-cache
; if true, this cache will try to retry with retry_attempts=N times waiting retry_backoff time
archive_cache.objectstore.retry = false