Fix minimum part size

This commit is contained in:
Kerollmops
2025-10-17 15:36:10 +02:00
committed by Clément Renault
parent d717ec3486
commit 3ec4750426

View File

@@ -303,7 +303,8 @@ impl IndexScheduler {
const ONE_HOUR: Duration = Duration::from_secs(3600); const ONE_HOUR: Duration = Duration::from_secs(3600);
// default part size is 250MiB // default part size is 250MiB
// TODO use 375MiB // TODO use 375MiB
const PART_SIZE: usize = 5 * 1024 * 1024; // It must be at least twice 5MiB
const PART_SIZE: usize = 10 * 1024 * 1024;
// The maximum number of parts that can be uploaded in parallel. // The maximum number of parts that can be uploaded in parallel.
const S3_MAX_IN_FLIGHT_PARTS: &str = "MEILI_S3_MAX_IN_FLIGHT_PARTS"; const S3_MAX_IN_FLIGHT_PARTS: &str = "MEILI_S3_MAX_IN_FLIGHT_PARTS";