-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(health): Handling SparkApplication CRD health status if dynamic a…
…llocation is enabled (#7557) (#11522) Signed-off-by: Yevgeniy Fridland <yevg.mord@gmail.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
- Loading branch information
1 parent
a825aad
commit eaac2c6
Showing
5 changed files
with
181 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
..._customizations/sparkoperator.k8s.io/SparkApplication/testdata/healthy_dynamic_alloc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: sparkoperator.k8s.io/v1beta2 | ||
kind: SparkApplication | ||
metadata: | ||
generation: 4 | ||
labels: | ||
argocd.argoproj.io/instance: spark-job | ||
name: spark-job-app | ||
namespace: spark-cluster | ||
resourceVersion: "31812990" | ||
uid: bfee52b0-74ca-4465-8005-f6643097ed64 | ||
spec: | ||
executor: | ||
instances: 4 | ||
sparkConf: | ||
spark.dynamicAllocation.enabled: 'true' | ||
spark.dynamicAllocation.maxExecutors: '10' | ||
spark.dynamicAllocation.minExecutors: '2' | ||
status: | ||
applicationState: | ||
state: RUNNING | ||
driverInfo: | ||
podName: ingestion-datalake-news-app-driver | ||
webUIAddress: 172.20.207.161:4040 | ||
webUIPort: 4040 | ||
webUIServiceName: ingestion-datalake-news-app-ui-svc | ||
executionAttempts: 13 | ||
executorState: | ||
ingestion-datalake-news-app-1591613851251-exec-1: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-2: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-4: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-5: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-6: RUNNING | ||
lastSubmissionAttemptTime: "2020-06-08T10:57:32Z" | ||
sparkApplicationId: spark-a5920b2a5aa04d22a737c60759b5bf82 | ||
submissionAttempts: 1 | ||
submissionID: 3e713ec8-9f6c-4e78-ac28-749797c846f0 | ||
terminationTime: null |
35 changes: 35 additions & 0 deletions
35
...zations/sparkoperator.k8s.io/SparkApplication/testdata/healthy_dynamic_alloc_dstream.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: sparkoperator.k8s.io/v1beta2 | ||
kind: SparkApplication | ||
metadata: | ||
generation: 4 | ||
labels: | ||
argocd.argoproj.io/instance: spark-job | ||
name: spark-job-app | ||
namespace: spark-cluster | ||
resourceVersion: "31812990" | ||
uid: bfee52b0-74ca-4465-8005-f6643097ed64 | ||
spec: | ||
executor: | ||
instances: 4 | ||
sparkConf: | ||
spark.streaming.dynamicAllocation.enabled: 'true' | ||
spark.streaming.dynamicAllocation.maxExecutors: '10' | ||
spark.streaming.dynamicAllocation.minExecutors: '2' | ||
status: | ||
applicationState: | ||
state: RUNNING | ||
driverInfo: | ||
podName: ingestion-datalake-news-app-driver | ||
webUIAddress: 172.20.207.161:4040 | ||
webUIPort: 4040 | ||
webUIServiceName: ingestion-datalake-news-app-ui-svc | ||
executionAttempts: 13 | ||
executorState: | ||
ingestion-datalake-news-app-1591613851251-exec-1: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-4: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-6: RUNNING | ||
lastSubmissionAttemptTime: "2020-06-08T10:57:32Z" | ||
sparkApplicationId: spark-a5920b2a5aa04d22a737c60759b5bf82 | ||
submissionAttempts: 1 | ||
submissionID: 3e713ec8-9f6c-4e78-ac28-749797c846f0 | ||
terminationTime: null |
38 changes: 38 additions & 0 deletions
38
...ns/sparkoperator.k8s.io/SparkApplication/testdata/healthy_dynamic_alloc_operator_api.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: sparkoperator.k8s.io/v1beta2 | ||
kind: SparkApplication | ||
metadata: | ||
generation: 4 | ||
labels: | ||
argocd.argoproj.io/instance: spark-job | ||
name: spark-job-app | ||
namespace: spark-cluster | ||
resourceVersion: "31812990" | ||
uid: bfee52b0-74ca-4465-8005-f6643097ed64 | ||
spec: | ||
executor: | ||
instances: 4 | ||
dynamicAllocation: | ||
enabled: true | ||
initialExecutors: 2 | ||
minExecutors: 2 | ||
maxExecutors: 10 | ||
status: | ||
applicationState: | ||
state: RUNNING | ||
driverInfo: | ||
podName: ingestion-datalake-news-app-driver | ||
webUIAddress: 172.20.207.161:4040 | ||
webUIPort: 4040 | ||
webUIServiceName: ingestion-datalake-news-app-ui-svc | ||
executionAttempts: 13 | ||
executorState: | ||
ingestion-datalake-news-app-1591613851251-exec-1: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-2: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-4: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-5: RUNNING | ||
ingestion-datalake-news-app-1591613851251-exec-6: RUNNING | ||
lastSubmissionAttemptTime: "2020-06-08T10:57:32Z" | ||
sparkApplicationId: spark-a5920b2a5aa04d22a737c60759b5bf82 | ||
submissionAttempts: 1 | ||
submissionID: 3e713ec8-9f6c-4e78-ac28-749797c846f0 | ||
terminationTime: null |