Skip to content

Commit 2586c2f

Browse files
authored
enhance: use WalkWithPrefix api for oss, enable piplined file gc (milvus-io#31740)
issue: milvus-io#19095,milvus-io#29655,milvus-io#31718 - Change `ListWithPrefix` to `WalkWithPrefix` of OOS into a pipeline mode. - File garbage collection is performed in other goroutine. - Segment Index Recycle clean index file too. --------- Signed-off-by: chyezh <chyezh@outlook.com>
1 parent f06509b commit 2586c2f

33 files changed

Lines changed: 1009 additions & 1805 deletions

configs/milvus.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ minio:
102102
region: # Specify minio storage system location region
103103
useVirtualHost: false # Whether use virtual host mode for bucket
104104
requestTimeoutMs: 10000 # minio timeout for request time in milliseconds
105+
listObjectsMaxKeys: 0 # The maximum number of objects requested per batch in minio ListObjects rpc, 0 means using oss client by default, decrease these configration if ListObjects timeout
105106

106107
# Milvus supports four MQ: rocksmq(based on RockDB), natsmq(embedded nats-server), Pulsar and Kafka.
107108
# You can change your mq by setting mq.type field.
@@ -443,7 +444,7 @@ dataCoord:
443444
enableGarbageCollection: true
444445
gc:
445446
interval: 3600 # gc interval in seconds
446-
missingTolerance: 3600 # file meta missing tolerance duration in seconds, default to 1hr
447+
missingTolerance: 86400 # file meta missing tolerance duration in seconds, default to 24hr(1d)
447448
dropTolerance: 10800 # file belongs to dropped entity tolerance duration in seconds. 3600
448449
removeConcurrent: 32 # number of concurrent goroutines to remove dropped s3 objects
449450
scanInterval: 168 # garbage collection scan residue interval in hours

0 commit comments

Comments
 (0)