Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Spark streaming job rate limit #187

Closed
dai-chen opened this issue Dec 8, 2023 · 2 comments
Closed

[FEATURE] Spark streaming job rate limit #187

dai-chen opened this issue Dec 8, 2023 · 2 comments
Labels
DataSource:File enhancement New feature or request wontfix This will not be worked on

Comments

@dai-chen
Copy link
Collaborator

dai-chen commented Dec 8, 2023

Is your feature request related to a problem?

Spark structured streaming API supports rate limit by maxFilesPerTrigger. Currently, Flint user can configure this when create index like example here: . However, there is no guidance on this value or similar support like maxBytesPerTrigger in Delta or Iceberg table.

Without such limit, Flint index like covering index may cause heavy ingestion pressure on OpenSearch cluster until back pressure mechanism triggered (end up with connect exception, socket timeout exception, circuit break or cluster write block exception).

What solution would you like?

Options:

  1. Guide user recommended maxFilesPerTrigger value
  2. Implement similar maxBytesPerTrigger in File source (maybe helpful to provide ALTER index statement so user can change this)

What alternatives have you considered?

Implement adaptive rate limiter on OpenSearch write latency

@penghuo
Copy link
Collaborator

penghuo commented Feb 19, 2024

apache/spark#44636

@penghuo penghuo removed the 0.2 label Feb 19, 2024
@dai-chen
Copy link
Collaborator Author

dai-chen commented Mar 7, 2024

Confirmed that the PR above was merged to Spark master branch (Spark 4.0.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataSource:File enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants