Commit 6d478e9
committed
[SPARK-51075][K8S] Use
### What changes were proposed in this pull request?
This PR aims to use `container resource` for HPA instead of `pod resource`.
### Why are the changes needed?
Since K8s 1.30, `Container resource based pod autoscaling` [KEP-1610](https://kep.k8s.io/1610) becomes `Stable`.
- https://v1-30.docs.kubernetes.io/blog/2024/03/12/kubernetes-1-30-upcoming-changes/
`container` metrics is more accurate the `pod` metric because Spark Worker pods frequently have more containers for logging and monitoring.
### Does this PR introduce _any_ user-facing change?
No, this is not released yet.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes apache#156 from dongjoon-hyun/SPARK-51075.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>container resource for HPA1 parent 94f3d8f commit 6d478e9
File tree
3 files changed
+9
-5
lines changed- examples
- spark-submission-worker/src
- main/java/org/apache/spark/k8s/operator
- test/java/org/apache/spark/k8s/operator
3 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
0 commit comments