Commit abb27a3
authored
Add maxInstances alongside maxSleepingInstances in LauncherConfig v1alpha1 (llm-d-incubation#487)
Stage A of the staged rename of MaxSleepingInstances -> MaxInstances
(see llm-d-incubation#471). Purely additive within v1alpha1: existing clients that set
maxSleepingInstances (including zero) continue to work unchanged.
- LauncherConfigSpec: add MaxInstances (optional, min 0). Relax
MaxSleepingInstances to optional with min 0 and rewrite its doc to
state the observable +1 semantics without naming an enforcing
component. Deprecate MaxSleepingInstances in favor of MaxInstances.
- Add a CRD-level CEL rule forbidding only the ambiguous case where
both fields are positive.
- dual-pods controller: add effectiveMaxInstances(lc) returning
MaxInstances when positive, else MaxSleepingInstances+1. Both
callsites in inference-server.go now pass effectiveMaxInstances(lc)-1.
Numeric behavior is unchanged when only maxSleepingInstances is set.
- Regenerate CRD manifest and applyconfiguration.
Resolves llm-d-incubation#482.
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>1 parent a8111c6 commit abb27a3
4 files changed
Lines changed: 55 additions & 8 deletions
File tree
- api/fma/v1alpha1
- config/crd
- pkg
- controller/dual-pods
- generated/applyconfiguration/fma/v1alpha1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
55 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | | - | |
48 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
49 | 60 | | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
52 | 64 | | |
| |||
8473 | 8485 | | |
8474 | 8486 | | |
8475 | 8487 | | |
8476 | | - | |
8477 | | - | |
8478 | 8488 | | |
| 8489 | + | |
| 8490 | + | |
| 8491 | + | |
| 8492 | + | |
8479 | 8493 | | |
8480 | 8494 | | |
8481 | 8495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
| 651 | + | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
799 | 809 | | |
800 | 810 | | |
801 | 811 | | |
| |||
Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments