From 3ec47504265acaf9bcdf77089f170031fdf58126 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Fri, 17 Oct 2025 15:36:10 +0200 Subject: [PATCH] Fix minimum part size --- .../index-scheduler/src/scheduler/process_snapshot_creation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs index 00548256e..8b596bc95 100644 --- a/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs +++ b/crates/index-scheduler/src/scheduler/process_snapshot_creation.rs @@ -303,7 +303,8 @@ impl IndexScheduler { const ONE_HOUR: Duration = Duration::from_secs(3600); // default part size is 250MiB // 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. const S3_MAX_IN_FLIGHT_PARTS: &str = "MEILI_S3_MAX_IN_FLIGHT_PARTS";