Skip to content

[SPARK-56699][K8S] Default ExecutorPVCResizePlugin interval to 5min in 5-minute units#55649

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56699
Closed

[SPARK-56699][K8S] Default ExecutorPVCResizePlugin interval to 5min in 5-minute units#55649
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56699

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented May 1, 2026

What changes were proposed in this pull request?

This PR changes spark.kubernetes.executor.pvc.resizeInterval to default to 5min and to accept only 0 or a positive multiple of 5 minutes.

Why are the changes needed?

Given that PVC expansion is a heavy operation (which typically takes over 1 minutes), restricting to 5-minute units (and defaulting to 5 minutes) gives a sensible out-of-the-box configuration once the plugin is registered, and prevents misconfigured intervals that would only add load on the K8s API server.

Does this PR introduce any user-facing change?

No (unreleased config).

How was this patch tested?

Pass the CIs with the newly added test case.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-7)

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

cc @peter-toth

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you so much, @peter-toth .

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-56699][K8S] Default ExecutorPVCResizePlugin interval to 5minin 5-minute units [SPARK-56699][K8S] Default ExecutorPVCResizePlugin interval to 5min in 5-minute units May 1, 2026
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Merged to master for Apache Spark 4.2.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56699 branch May 1, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants