Commit c6d9c81
committed
feat: add starting pods configuration to scaling behavior
- Introduced `StartingPods` configuration in the scaler CRD to manage how starting (not-ready) pods affect scale-up decisions.
- Added properties: `bypassGateOnPanic`, `maxStartingPods`, `maxStartingPodPercent`, and `startingPodWeight` to control scaling behavior based on starting pods.
- Updated `ScalingContext` interface and its implementation to include methods for retrieving starting pods configuration.
- Enhanced scaling algorithms (BudScaler and KPA) to consider starting pods when calculating effective replicas and determining scale-up gating.
- Implemented tests for effective replica calculations and scale-up gating logic based on starting pods.
- Added utility functions to count starting pods in the autoscaler.1 parent 47dd684 commit c6d9c81
10 files changed
Lines changed: 1440 additions & 343 deletions
File tree
- api/scaler/v1alpha1
- config/crd
- bases
- pkg
- context
- controller/budaiscaler
- algorithm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
458 | 491 | | |
459 | 492 | | |
460 | 493 | | |
| |||
483 | 516 | | |
484 | 517 | | |
485 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
486 | 525 | | |
487 | 526 | | |
488 | 527 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments