Skip to content

fix(scheduler): Take termination grace period into account for "StuckInReleasing" - #2083

Closed
davidLif wants to merge 4 commits into
mainfrom
DavidL/main/StuckInReleasingWithGracePeriod
Closed

fix(scheduler): Take termination grace period into account for "StuckInReleasing"#2083
davidLif wants to merge 4 commits into
mainfrom
DavidL/main/StuckInReleasingWithGracePeriod

Conversation

@davidLif

@davidLif davidLif commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Description

Take the pod termination grace period into account when determining if the pod is still in a terminating state, or is it "StuckInReleasing"

Related Issues

Fixes #2081

Checklist

Note: Ensure your PR title follows the Conventional Commits format (e.g., feat(scheduler): add new feature)

  • Self-reviewed
  • Added/updated tests (if needed)
  • Updated documentation (if needed)
  • Added a changelog fragment via make changelog (or applied the skip-changelog label). Do not edit CHANGELOG.md directly — pending fragments are folded into it at release time.

Breaking Changes

Additional Notes

…f the pod is still in a terminating state, or is it /StuckInReleasing/

Signed-off-by: davidLif <davidshani12@gmail.com>
Signed-off-by: davidLif <davidshani12@gmail.com>
Signed-off-by: davidLif <davidshani12@gmail.com>
@github-actions

github-actions Bot commented Aug 16, 2026

Copy link
Copy Markdown

Total coverage: 54.6% -> 54.6% (delta 0.00%)

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/cmd/scheduler/app/options 90.70% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/common/constants 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/api/pod_info 73.10% (+0.28%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/cmd/scheduler/app/options/options.go 90.70% (ø) 43 39 4
github.com/kai-scheduler/KAI-scheduler/pkg/common/constants/constants.go 0.00% (ø) 2 0 2
github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/api/pod_info/pod_info.go 68.91% (+0.49%) 193 (+3) 133 (+3) 60 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/api/pod_info/pod_info_test.go

@github-actions

github-actions Bot commented Aug 16, 2026

Copy link
Copy Markdown

📊 Performance Benchmark Results

Comparing PR (DavidL/main/StuckInReleasingWithGracePeriod) vs main branch — click to expand
goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
                                    │ main-bench.txt │           pr-bench.txt            │
                                    │     sec/op     │   sec/op     vs base              │
AllocateAction_SmallCluster-4            108.6m ± 0%   108.5m ± 5%       ~ (p=0.394 n=6)
AllocateAction_MediumCluster-4           136.1m ± 1%   136.6m ± 1%       ~ (p=0.240 n=6)
AllocateAction_LargeCluster-4            198.7m ± 4%   198.1m ± 2%       ~ (p=1.000 n=6)
ReclaimAction_SmallCluster-4             103.6m ± 0%   103.6m ± 0%       ~ (p=1.000 n=6)
ReclaimAction_MediumCluster-4            106.6m ± 0%   107.1m ± 1%       ~ (p=0.132 n=6)
PreemptAction_SmallCluster-4             104.8m ± 0%   104.7m ± 0%       ~ (p=0.180 n=6)
PreemptAction_MediumCluster-4            115.6m ± 1%   116.0m ± 1%       ~ (p=0.589 n=6)
ConsolidationAction_SmallCluster-4       122.3m ± 1%   122.9m ± 1%       ~ (p=0.589 n=6)
ConsolidationAction_MediumCluster-4      266.5m ± 1%   266.4m ± 1%       ~ (p=0.699 n=6)
FullSchedulingCycle_SmallCluster-4       106.3m ± 0%   106.1m ± 0%       ~ (p=0.132 n=6)
FullSchedulingCycle_MediumCluster-4      120.5m ± 1%   120.6m ± 2%       ~ (p=0.937 n=6)
FullSchedulingCycle_LargeCluster-4       157.7m ± 2%   156.6m ± 1%       ~ (p=0.132 n=6)
ManyQueues_MediumCluster-4               139.1m ± 1%   138.7m ± 3%       ~ (p=1.000 n=6)
GangScheduling_MediumCluster-4           158.6m ± 2%   157.4m ± 1%       ~ (p=0.310 n=6)
geomean                                  133.5m        133.4m       -0.05%

                                    │ main-bench.txt │            pr-bench.txt            │
                                    │      B/op      │     B/op      vs base              │
AllocateAction_SmallCluster-4           2.078Mi ± 1%   2.085Mi ± 1%       ~ (p=1.000 n=6)
AllocateAction_MediumCluster-4          9.902Mi ± 0%   9.904Mi ± 0%       ~ (p=0.394 n=6)
AllocateAction_LargeCluster-4           31.26Mi ± 0%   31.26Mi ± 0%       ~ (p=1.000 n=6)
ReclaimAction_SmallCluster-4            953.6Ki ± 1%   951.7Ki ± 0%       ~ (p=0.900 n=6)
ReclaimAction_MediumCluster-4           3.103Mi ± 0%   3.106Mi ± 0%       ~ (p=0.240 n=6)
PreemptAction_SmallCluster-4            1.346Mi ± 1%   1.343Mi ± 1%       ~ (p=0.589 n=6)
PreemptAction_MediumCluster-4           5.934Mi ± 0%   5.936Mi ± 0%       ~ (p=0.589 n=6)
ConsolidationAction_SmallCluster-4      8.208Mi ± 0%   8.204Mi ± 0%       ~ (p=0.394 n=6)
ConsolidationAction_MediumCluster-4     67.76Mi ± 0%   67.76Mi ± 0%       ~ (p=0.699 n=6)
FullSchedulingCycle_SmallCluster-4      1.406Mi ± 0%   1.404Mi ± 1%       ~ (p=0.485 n=6)
FullSchedulingCycle_MediumCluster-4     6.139Mi ± 0%   6.139Mi ± 0%       ~ (p=0.818 n=6)
FullSchedulingCycle_LargeCluster-4      18.36Mi ± 0%   18.36Mi ± 0%       ~ (p=0.240 n=6)
ManyQueues_MediumCluster-4              13.13Mi ± 0%   13.13Mi ± 0%       ~ (p=0.699 n=6)
GangScheduling_MediumCluster-4          15.33Mi ± 0%   15.33Mi ± 0%  -0.01% (p=0.041 n=6)
geomean                                 6.543Mi        6.542Mi       -0.01%

                                    │ main-bench.txt │           pr-bench.txt            │
                                    │   allocs/op    │  allocs/op   vs base              │
AllocateAction_SmallCluster-4            31.49k ± 0%   31.49k ± 0%       ~ (p=0.727 n=6)
AllocateAction_MediumCluster-4           245.8k ± 0%   245.8k ± 0%       ~ (p=0.162 n=6)
AllocateAction_LargeCluster-4            1.007M ± 0%   1.007M ± 0%       ~ (p=0.485 n=6)
ReclaimAction_SmallCluster-4             8.937k ± 0%   8.936k ± 0%       ~ (p=0.861 n=6)
ReclaimAction_MediumCluster-4            28.12k ± 0%   28.12k ± 0%       ~ (p=0.952 n=6)
PreemptAction_SmallCluster-4             15.27k ± 0%   15.27k ± 0%       ~ (p=0.190 n=6)
PreemptAction_MediumCluster-4            55.29k ± 0%   55.29k ± 0%       ~ (p=0.883 n=6)
ConsolidationAction_SmallCluster-4       109.7k ± 0%   109.7k ± 0%       ~ (p=0.457 n=6)
ConsolidationAction_MediumCluster-4      1.020M ± 0%   1.020M ± 0%       ~ (p=0.818 n=6)
FullSchedulingCycle_SmallCluster-4       19.63k ± 0%   19.63k ± 0%       ~ (p=0.600 n=6)
FullSchedulingCycle_MediumCluster-4      136.3k ± 0%   136.3k ± 0%       ~ (p=0.411 n=6)
FullSchedulingCycle_LargeCluster-4       537.7k ± 0%   537.7k ± 0%       ~ (p=0.515 n=6)
ManyQueues_MediumCluster-4               274.1k ± 0%   274.0k ± 0%       ~ (p=0.485 n=6)
GangScheduling_MediumCluster-4           455.3k ± 0%   455.3k ± 0%       ~ (p=0.173 n=6)
geomean                                  109.0k        109.0k       -0.00%

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/integration_tests/reclaim
                                                          │ main-bench.txt │           pr-bench.txt            │
                                                          │     sec/op     │   sec/op     vs base              │
ReclaimLargeJobs_10Node-4                                     138.6m ±  0%   138.7m ± 1%       ~ (p=0.394 n=6)
ReclaimLargeJobs_50Node-4                                     327.2m ± 10%   334.1m ± 7%       ~ (p=0.699 n=6)
ReclaimLargeJobs_100Node-4                                    677.3m ±  4%   679.7m ± 1%       ~ (p=0.589 n=6)
ReclaimLargeJobs_200Node-4                                     1.670 ±  1%    1.658 ± 2%       ~ (p=0.310 n=6)
ReclaimLargeJobs_500Node-4                                     7.633 ±  2%    7.618 ± 2%       ~ (p=0.699 n=6)
ReclaimLargeJobs_1000Node-4                                    33.80 ±  1%    33.44 ± 1%  -1.04% (p=0.041 n=6)
ReclaimManySingleGPUJobsFullCycle_10Node-4                    160.1m ±  0%   159.2m ± 1%       ~ (p=0.240 n=6)
ReclaimManySingleGPUJobsFullCycle_50Node-4                   1001.3m ±  1%   999.9m ± 0%       ~ (p=0.699 n=6)
ReclaimManySingleGPUJobsFullCycle_100Node-4                    3.548 ±  2%    3.493 ± 1%       ~ (p=0.132 n=6)
ReclaimManySingleGPUJobsFullCycle_200Node-4                    15.22 ±  3%    15.67 ± 3%  +2.95% (p=0.009 n=6)
ReclaimManySingleGPUJobsFullCycle_500Node-4                    133.0 ±  4%    133.7 ± 4%       ~ (p=0.937 n=6)
ReclaimManySingleGPUJobsFullCycleWithMinRuntime_500Node-4      125.3 ±  6%    128.0 ± 2%  +2.19% (p=0.041 n=6)
geomean                                                        3.337          3.348       +0.32%

                                                          │ main-bench.txt │            pr-bench.txt            │
                                                          │      B/op      │     B/op      vs base              │
ReclaimLargeJobs_10Node-4                                     17.21Mi ± 1%   17.20Mi ± 1%       ~ (p=0.589 n=6)
ReclaimLargeJobs_50Node-4                                     91.85Mi ± 0%   91.89Mi ± 0%       ~ (p=0.132 n=6)
ReclaimLargeJobs_100Node-4                                    204.3Mi ± 0%   204.3Mi ± 0%       ~ (p=0.937 n=6)
ReclaimLargeJobs_200Node-4                                    486.4Mi ± 0%   486.4Mi ± 0%       ~ (p=0.937 n=6)
ReclaimLargeJobs_500Node-4                                    1.699Gi ± 0%   1.699Gi ± 0%       ~ (p=0.310 n=6)
ReclaimLargeJobs_1000Node-4                                   5.141Gi ± 0%   5.141Gi ± 0%       ~ (p=0.818 n=6)
ReclaimManySingleGPUJobsFullCycle_10Node-4                    14.81Mi ± 0%   14.80Mi ± 0%       ~ (p=0.394 n=6)
ReclaimManySingleGPUJobsFullCycle_50Node-4                    145.0Mi ± 0%   145.0Mi ± 0%       ~ (p=0.310 n=6)
ReclaimManySingleGPUJobsFullCycle_100Node-4                   470.7Mi ± 0%   470.7Mi ± 0%  +0.01% (p=0.009 n=6)
ReclaimManySingleGPUJobsFullCycle_200Node-4                   1.630Gi ± 0%   1.630Gi ± 0%       ~ (p=0.180 n=6)
ReclaimManySingleGPUJobsFullCycle_500Node-4                   10.34Gi ± 0%   10.34Gi ± 0%       ~ (p=0.937 n=6)
ReclaimManySingleGPUJobsFullCycleWithMinRuntime_500Node-4     10.34Gi ± 0%   10.34Gi ± 0%       ~ (p=0.589 n=6)
geomean                                                       504.5Mi        504.5Mi       -0.01%

                                                          │ main-bench.txt │           pr-bench.txt            │
                                                          │   allocs/op    │  allocs/op   vs base              │
ReclaimLargeJobs_10Node-4                                      242.0k ± 0%   242.0k ± 0%       ~ (p=0.950 n=6)
ReclaimLargeJobs_50Node-4                                      1.482M ± 0%   1.482M ± 0%       ~ (p=0.818 n=6)
ReclaimLargeJobs_100Node-4                                     3.741M ± 0%   3.741M ± 0%       ~ (p=0.937 n=6)
ReclaimLargeJobs_200Node-4                                     10.52M ± 0%   10.52M ± 0%       ~ (p=0.818 n=6)
ReclaimLargeJobs_500Node-4                                     45.58M ± 0%   45.58M ± 0%       ~ (p=0.310 n=6)
ReclaimLargeJobs_1000Node-4                                    159.5M ± 0%   159.5M ± 0%       ~ (p=0.288 n=6)
ReclaimManySingleGPUJobsFullCycle_10Node-4                     279.9k ± 0%   279.9k ± 0%       ~ (p=0.777 n=6)
ReclaimManySingleGPUJobsFullCycle_50Node-4                     3.742M ± 0%   3.741M ± 0%       ~ (p=0.472 n=6)
ReclaimManySingleGPUJobsFullCycle_100Node-4                    13.33M ± 0%   13.33M ± 0%  +0.00% (p=0.041 n=6)
ReclaimManySingleGPUJobsFullCycle_200Node-4                    50.07M ± 0%   50.07M ± 0%       ~ (p=0.485 n=6)
ReclaimManySingleGPUJobsFullCycle_500Node-4                    300.6M ± 0%   300.6M ± 0%       ~ (p=0.394 n=6)
ReclaimManySingleGPUJobsFullCycleWithMinRuntime_500Node-4      300.6M ± 0%   300.6M ± 0%       ~ (p=0.589 n=6)
geomean                                                        11.69M        11.69M       +0.00%

                                                          │ main-bench.txt │              pr-bench.txt              │
                                                          │ full_cycles/op │ full_cycles/op  vs base                │
ReclaimManySingleGPUJobsFullCycle_10Node-4                      1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimManySingleGPUJobsFullCycle_50Node-4                      1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimManySingleGPUJobsFullCycle_100Node-4                     1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimManySingleGPUJobsFullCycle_200Node-4                     1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimManySingleGPUJobsFullCycle_500Node-4                     1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimManySingleGPUJobsFullCycleWithMinRuntime_500Node-4       1.000 ± 0%       1.000 ± 0%       ~ (p=1.000 n=6) ¹
geomean                                                         1.000            1.000       +0.00%
¹ all samples are equal

                                            │          main-bench.txt           │                     pr-bench.txt                     │
                                            │ fit_error_tasks_after_allocate/op │ fit_error_tasks_after_allocate/op  vs base           │
ReclaimManySingleGPUJobsFullCycle_500Node-4                         4.000k ± 0%                         4.000k ± 0%  ~ (p=1.000 n=6) ¹
¹ all samples are equal

                                            │          main-bench.txt           │                    pr-bench.txt                    │
                                            │ heap_live_after_allocate_bytes/op │ heap_live_after_allocate_bytes/op  vs base         │
ReclaimManySingleGPUJobsFullCycle_500Node-4                        41.55M ± 76%                        41.55M ± 76%  ~ (p=1.000 n=6)

                                            │         main-bench.txt         │                  pr-bench.txt                   │
                                            │ heap_live_after_cycle_bytes/op │ heap_live_after_cycle_bytes/op  vs base         │
ReclaimManySingleGPUJobsFullCycle_500Node-4                     56.16M ± 56%                     56.16M ± 56%  ~ (p=0.937 n=6)

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/preempt
                                  │ main-bench.txt │           pr-bench.txt            │
                                  │     sec/op     │   sec/op     vs base              │
OrderedVictimsQueueConstruction-4      728.9µ ± 0%   735.7µ ± 1%  +0.93% (p=0.002 n=6)

                                  │ main-bench.txt │          pr-bench.txt           │
                                  │      B/op      │     B/op      vs base           │
OrderedVictimsQueueConstruction-4     114.9Ki ± 0%   114.9Ki ± 0%  ~ (p=1.000 n=6) ¹
¹ all samples are equal

                                  │ main-bench.txt │          pr-bench.txt          │
                                  │   allocs/op    │  allocs/op   vs base           │
OrderedVictimsQueueConstruction-4      4.033k ± 0%   4.033k ± 0%  ~ (p=1.000 n=6) ¹
¹ all samples are equal

pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions/reclaim
                                                         │ main-bench.txt │           pr-bench.txt            │
                                                         │     sec/op     │   sec/op     vs base              │
ReclaimUnschedulableDistributedJob_10Node-4                   150.1m ± 1%   150.9m ± 9%       ~ (p=0.240 n=6)
ReclaimUnschedulableDistributedJob_50Node-4                    3.799 ± 1%    3.782 ± 2%       ~ (p=0.132 n=6)
ReclaimUnschedulableDistributedJob_100Node-4                   17.66 ± 1%    17.61 ± 1%       ~ (p=0.589 n=6)
ReclaimUnschedulableDistributedJob_AntiAffinity100Node-4       16.39 ± 1%    16.12 ± 1%  -1.64% (p=0.004 n=6)
ReclaimWithMissingPVCJobs-4                                   2.655m ± 8%   2.578m ± 7%       ~ (p=0.394 n=6)
geomean                                                       847.8m        839.7m       -0.96%

                                                         │ main-bench.txt │            pr-bench.txt            │
                                                         │      B/op      │     B/op      vs base              │
ReclaimUnschedulableDistributedJob_10Node-4                  20.88Mi ± 4%   20.86Mi ± 3%       ~ (p=0.394 n=6)
ReclaimUnschedulableDistributedJob_50Node-4                  1.154Gi ± 0%   1.154Gi ± 0%       ~ (p=0.589 n=6)
ReclaimUnschedulableDistributedJob_100Node-4                 5.560Gi ± 0%   5.559Gi ± 0%       ~ (p=0.818 n=6)
ReclaimUnschedulableDistributedJob_AntiAffinity100Node-4     5.159Gi ± 0%   5.159Gi ± 0%       ~ (p=1.000 n=6)
ReclaimWithMissingPVCJobs-4                                  9.156Ki ± 3%   9.086Ki ± 2%       ~ (p=0.957 n=6)
geomean                                                      92.13Mi        91.96Mi       -0.17%

                                                         │ main-bench.txt │           pr-bench.txt            │
                                                         │   allocs/op    │  allocs/op   vs base              │
ReclaimUnschedulableDistributedJob_10Node-4                   306.1k ± 3%   306.1k ± 3%       ~ (p=0.331 n=6)
ReclaimUnschedulableDistributedJob_50Node-4                   27.77M ± 0%   27.77M ± 0%       ~ (p=0.310 n=6)
ReclaimUnschedulableDistributedJob_100Node-4                  169.0M ± 0%   169.0M ± 0%       ~ (p=1.000 n=6)
ReclaimUnschedulableDistributedJob_AntiAffinity100Node-4      146.8M ± 0%   146.8M ± 0%       ~ (p=0.310 n=6)
ReclaimWithMissingPVCJobs-4                                    170.5 ± 1%    170.0 ± 1%       ~ (p=0.716 n=6)
geomean                                                       2.047M        2.046M       -0.06%

                                                         │ main-bench.txt │             pr-bench.txt             │
                                                         │  duplicate/op  │ duplicate/op  vs base                │
ReclaimUnschedulableDistributedJob_10Node-4                  0.000 ± 0%       0.000 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_50Node-4                  366.0 ± 0%       366.0 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_100Node-4                1.020k ± 0%      1.020k ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_AntiAffinity100Node-4    1.020k ± 0%      1.020k ± 0%       ~ (p=1.000 n=6) ¹
geomean                                                                 ²                 +0.00%               ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                                                         │ main-bench.txt │             pr-bench.txt             │
                                                         │  simulated/op  │ simulated/op  vs base                │
ReclaimUnschedulableDistributedJob_10Node-4                    18.00 ± 0%     18.00 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_50Node-4                    178.0 ± 0%     178.0 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_100Node-4                   378.0 ± 0%     378.0 ± 0%       ~ (p=1.000 n=6) ¹
ReclaimUnschedulableDistributedJob_AntiAffinity100Node-4       378.0 ± 0%     378.0 ± 0%       ~ (p=1.000 n=6) ¹
geomean                                                        146.3          146.3       +0.00%
¹ all samples are equal

Legend

  • 📉 Negative delta = Performance improvement (faster)
  • 📈 Positive delta = Performance regression (slower)
  • p-value < 0.05 indicates statistically significant change
Raw benchmark data

PR branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	       9	 113398816 ns/op	 2189861 B/op	   31498 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108515493 ns/op	 2187467 B/op	   31492 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108440434 ns/op	 2171494 B/op	   31488 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108714025 ns/op	 2187050 B/op	   31483 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108507887 ns/op	 2171944 B/op	   31489 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108423697 ns/op	 2184894 B/op	   31492 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135228144 ns/op	10382742 B/op	  245768 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136503085 ns/op	10385546 B/op	  245781 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 137375309 ns/op	10386686 B/op	  245813 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 137610290 ns/op	10396948 B/op	  245772 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136129752 ns/op	10384796 B/op	  245784 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136690523 ns/op	10382165 B/op	  245781 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 201603880 ns/op	32776580 B/op	 1007139 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 199385603 ns/op	32777654 B/op	 1007226 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 195223563 ns/op	32777650 B/op	 1007145 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 200582915 ns/op	32773097 B/op	 1007177 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 195295931 ns/op	32772357 B/op	 1007182 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 196895299 ns/op	32775429 B/op	 1007123 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103602544 ns/op	  969858 B/op	    8933 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103707962 ns/op	  970479 B/op	    8935 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103789041 ns/op	  978575 B/op	    8938 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103250463 ns/op	  970719 B/op	    8935 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103550450 ns/op	  978372 B/op	    8937 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103448616 ns/op	  978530 B/op	    8938 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107140226 ns/op	 3262657 B/op	   28121 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107914694 ns/op	 3249268 B/op	   28118 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107307256 ns/op	 3256844 B/op	   28119 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106994656 ns/op	 3257272 B/op	   28119 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106586449 ns/op	 3257062 B/op	   28121 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106551617 ns/op	 3256471 B/op	   28118 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104744636 ns/op	 1412295 B/op	   15269 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104483151 ns/op	 1407546 B/op	   15265 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104782508 ns/op	 1403909 B/op	   15265 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104689086 ns/op	 1407952 B/op	   15267 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104923123 ns/op	 1404642 B/op	   15267 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104689782 ns/op	 1418370 B/op	   15269 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115404357 ns/op	 6224271 B/op	   55293 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 116432914 ns/op	 6219721 B/op	   55290 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115958824 ns/op	 6224308 B/op	   55293 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115992969 ns/op	 6224735 B/op	   55295 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115308531 ns/op	 6224155 B/op	   55292 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 116585694 ns/op	 6228356 B/op	   55294 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 122970421 ns/op	 8606648 B/op	  109688 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123186023 ns/op	 8602165 B/op	  109630 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 122969312 ns/op	 8603405 B/op	  109671 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 122774263 ns/op	 8600344 B/op	  109649 allocs/op

Main branch:

goos: linux
goarch: amd64
pkg: github.com/kai-scheduler/KAI-scheduler/pkg/scheduler/actions
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkAllocateAction_SmallCluster-4         	      10	 108640302 ns/op	 2200647 B/op	   31500 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108666607 ns/op	 2187625 B/op	   31490 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108578087 ns/op	 2171762 B/op	   31482 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108592113 ns/op	 2183062 B/op	   31489 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108705447 ns/op	 2175755 B/op	   31485 allocs/op
BenchmarkAllocateAction_SmallCluster-4         	      10	 108526258 ns/op	 2173128 B/op	   31490 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135256176 ns/op	10382347 B/op	  245762 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135356124 ns/op	10383975 B/op	  245789 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 135916407 ns/op	10386862 B/op	  245783 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136433135 ns/op	10382828 B/op	  245760 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136230511 ns/op	10383592 B/op	  245760 allocs/op
BenchmarkAllocateAction_MediumCluster-4        	       8	 136558839 ns/op	10382090 B/op	  245763 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 201373231 ns/op	32775120 B/op	 1007249 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 193964425 ns/op	32780396 B/op	 1007149 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 198876424 ns/op	32774157 B/op	 1007166 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 195232956 ns/op	32774750 B/op	 1007161 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 198518568 ns/op	32772026 B/op	 1007206 allocs/op
BenchmarkAllocateAction_LargeCluster-4         	       6	 206275799 ns/op	32780756 B/op	 1007172 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103756844 ns/op	  970431 B/op	    8936 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103402158 ns/op	  974772 B/op	    8937 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103652618 ns/op	  978266 B/op	    8937 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103181010 ns/op	  974448 B/op	    8936 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103477441 ns/op	  978266 B/op	    8936 allocs/op
BenchmarkReclaimAction_SmallCluster-4          	      10	 103837956 ns/op	  978487 B/op	    8937 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 107094712 ns/op	 3253579 B/op	   28119 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106594645 ns/op	 3253328 B/op	   28119 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106787292 ns/op	 3249772 B/op	   28117 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106371678 ns/op	 3253034 B/op	   28119 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106487220 ns/op	 3256984 B/op	   28120 allocs/op
BenchmarkReclaimAction_MediumCluster-4         	      10	 106563265 ns/op	 3256978 B/op	   28120 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104994100 ns/op	 1404143 B/op	   15267 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104797089 ns/op	 1411926 B/op	   15269 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104807667 ns/op	 1412076 B/op	   15269 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104852406 ns/op	 1411568 B/op	   15268 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104802592 ns/op	 1412437 B/op	   15270 allocs/op
BenchmarkPreemptAction_SmallCluster-4          	      10	 104675638 ns/op	 1411456 B/op	   15268 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115315895 ns/op	 6219889 B/op	   55292 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115341444 ns/op	 6224201 B/op	   55292 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115736838 ns/op	 6228651 B/op	   55295 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 116877374 ns/op	 6215753 B/op	   55291 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115812555 ns/op	 6220002 B/op	   55292 allocs/op
BenchmarkPreemptAction_MediumCluster-4         	       9	 115497143 ns/op	 6224502 B/op	   55295 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 121892545 ns/op	 8616341 B/op	  109674 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 122410000 ns/op	 8604528 B/op	  109684 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 123272289 ns/op	 8606469 B/op	  109702 allocs/op
BenchmarkConsolidationAction_SmallCluster-4    	       9	 121863360 ns/op	 8606624 B/op	  109621 allocs/op

Signed-off-by: davidLif <davidshani12@gmail.com>

@gshaibi gshaibi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a minute, I see the upstream already counts the grace period into the deletionTimestamp...

@davidLif
davidLif disabled auto-merge August 17, 2026 12:35
@davidLif davidLif closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Take pod terminationGracePeriodSeconds into acout when calculating "StuckInReleasing"

2 participants