You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@livy.apache.org by "soumyadeeplogin (via GitHub)" <gi...@apache.org> on 2026/08/20 09:06:42 UTC

[PR] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

soumyadeeplogin opened a new pull request, #545:
URL: https://github.com/apache/livy/pull/545

   ## What changes were proposed in this pull request?
   `SparkKubernetesApp.getApplicationReport` previously issued a single LIST returning every pod tagged with the session's app tag. On large jobs this deserializes hundreds of executor pods into memory on every poll cycle, even though application state is derived only from the driver pod.
   
   Two changes:
   - Narrow the driver lookup to `spark-role=driver` at the API server so the LIST returns a single pod.
   - Gate the separate executor LIST behind a new config flag `livy.server.kubernetes.executor-tracking.enabled` (default `true`, so existing deployments see no behavior change). Operators running large clusters can disable it to skip the executor LIST entirely. When disabled, per-executor Grafana/Loki log URLs and per-executor entries in session diagnostics are omitted; driver state tracking is unaffected.
   
   Adds two tests: default-enabled invariant, and diagnostics graceful degradation when the executor list is empty.
   
   ## How was this patch tested?
   Existing and newly added unit tests in `SparkKubernetesAppSpec`, plus manual validation against a live Kubernetes cluster running Spark jobs with hundreds of executors.
   
   ## Note on JIRA
   A LIVY JIRA ticket for this change is being filed; will update the title with the ticket number (`[LIVY-xxxx]`) once available.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "soumyadeeplogin (via GitHub)" <gi...@apache.org>.
soumyadeeplogin commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5580986292

   @gyogal since @roczei mentioned he doesn't have committer/PMC permissions to approve the CI workflow or merge, could you take a look and merge this when you have a chance? Review feedback has been addressed and CI is green. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "gyogal (via GitHub)" <gi...@apache.org>.
gyogal commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5413097240

   @soumyadeeplogin Thank you for opening these PRs as your first contributions! Due to a few upgrades done in the last few days, CI tests can only run successfully when rebased to the latest commit. Could you please update your PRs to include the latest commits from the `master` branch?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "soumyadeeplogin (via GitHub)" <gi...@apache.org>.
soumyadeeplogin commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5413376342

   Thanks @gyogal -- Just rebased and force-pushed all three PRs  onto the latest master. They're clean/mergeable now. Since this is my first contribution, could you also approve the CI workflow when you get a chance? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "soumyadeeplogin (via GitHub)" <gi...@apache.org>.
soumyadeeplogin commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5365844254

   Filed https://issues.apache.org/jira/browse/LIVY-1072 for this change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "gyogal (via GitHub)" <gi...@apache.org>.
gyogal merged PR #545:
URL: https://github.com/apache/livy/pull/545


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "soumyadeeplogin (via GitHub)" <gi...@apache.org>.
soumyadeeplogin commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5423003266

   Thanks, @roczei! Added the AI tooling disclosure section to the PR description.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "roczei (via GitHub)" <gi...@apache.org>.
roczei commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5422780786

   @soumyadeeplogin 
   
   Thanks for the PR! Could you please add the required [AI tooling disclosure](https://github.com/apache/livy/blob/master/.github/PULL_REQUEST_TEMPLATE) to the PR description?
   
   ## Was this patch authored or co-authored using generative AI tooling?
   (If yes, include 'Generated-by: ' followed by the tool name and version. If no, write 'No'.)
   Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [LIVY-1072] Reduce Kubernetes API load in SparkKubernetesApp polling [livy]

Posted by "soumyadeeplogin (via GitHub)" <gi...@apache.org>.
soumyadeeplogin commented on PR #545:
URL: https://github.com/apache/livy/pull/545#issuecomment-5365901712

   @gyogal @roczei could one of you approve the CI workflow run for this PR (first-time contributor gate) and take a look when you have a chance? Filed as LIVY-1072.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org