From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 8A18B1FF133 for ; Mon, 27 Apr 2026 15:20:51 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 85E8A1E518; Mon, 27 Apr 2026 15:20:42 +0200 (CEST) From: Dominik Rusovac To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox 2/7] resource-scheduling: re-adjust hardcoded imbalance values Date: Mon, 27 Apr 2026 15:20:26 +0200 Message-ID: <20260427132031.220468-3-d.rusovac@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260427132031.220468-1-d.rusovac@proxmox.com> References: <20260427132031.220468-1-d.rusovac@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1777295943091 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.454 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MIVU7TVC2ZNQGQGTCKHK7WSJ6QN5BHA4 X-Message-ID-Hash: MIVU7TVC2ZNQGQGTCKHK7WSJ6QN5BHA4 X-MailFrom: d.rusovac@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Dominik Rusovac --- proxmox-resource-scheduling/tests/scheduler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmox-resource-scheduling/tests/scheduler.rs b/proxmox-resource-scheduling/tests/scheduler.rs index be90e4f9..21dbe451 100644 --- a/proxmox-resource-scheduling/tests/scheduler.rs +++ b/proxmox-resource-scheduling/tests/scheduler.rs @@ -172,7 +172,7 @@ fn test_score_best_balancing_migration_candidates_with_no_candidates() { fn test_score_best_balancing_migration_candidates_in_homogeneous_cluster() { let scheduler = new_homogeneous_cluster_scheduler(); - assert_imbalance(scheduler.node_imbalance(), 0.4893954724628247); + assert_imbalance(scheduler.node_imbalance(), 0.3460548572604576); let (candidates, migration1, migration2) = new_simple_migration_candidates(); @@ -186,7 +186,7 @@ fn test_score_best_balancing_migration_candidates_in_homogeneous_cluster() { fn test_score_best_balancing_migration_candidates_in_heterogeneous_cluster() { let scheduler = new_heterogeneous_cluster_scheduler(); - assert_imbalance(scheduler.node_imbalance(), 0.33026013056867354); + assert_imbalance(scheduler.node_imbalance(), 0.23352917788066363); let (candidates, migration1, migration2) = new_simple_migration_candidates(); @@ -225,7 +225,7 @@ fn test_score_best_balancing_migration_candidates_topsis_in_homogeneous_cluster( ) -> Result<(), Error> { let scheduler = new_homogeneous_cluster_scheduler(); - assert_imbalance(scheduler.node_imbalance(), 0.4893954724628247); + assert_imbalance(scheduler.node_imbalance(), 0.3460548572604576); let (candidates, migration1, migration2) = new_simple_migration_candidates(); @@ -242,7 +242,7 @@ fn test_score_best_balancing_migration_candidates_topsis_in_heterogeneous_cluste ) -> Result<(), Error> { let scheduler = new_heterogeneous_cluster_scheduler(); - assert_imbalance(scheduler.node_imbalance(), 0.33026013056867354); + assert_imbalance(scheduler.node_imbalance(), 0.23352917788066363); let (candidates, migration1, migration2) = new_simple_migration_candidates(); -- 2.47.3