[
https://issues.apache.org/jira/browse/SPARK-49259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jungtaek Lim resolved SPARK-49259.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 47927
[https://github.com/apache/spark/pull/47927]
> Size based partition creation during kafka read
> -----------------------------------------------
>
> Key: SPARK-49259
> URL: https://issues.apache.org/jira/browse/SPARK-49259
> Project: Spark
> Issue Type: Improvement
> Components: Structured Streaming
> Affects Versions: 4.0.0
> Reporter: Subham Singhal
> Assignee: Subham Singhal
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Currently Spark + kafka structured streaming provides *minPartitions* config
> to create more number of partitions than kafka has. This is helpful to
> increase parallelism but this value is can not be changed dynamically.
> It would be better to dynamically increase spark partitions based on input
> size, if input size is high create more partitions. We can take *avg msg
> size* and *maxBytesPerPartition* as input and dynamically create partitions
> to handle varying loads.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]