You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/13 14:33:16 UTC
[GitHub] [spark] srowen commented on a change in pull request #24590:
[SPARK-27687][SS] Rename Kafka consumer cache capacity and document caching
srowen commented on a change in pull request #24590: [SPARK-27687][SS] Rename Kafka consumer cache capacity and document caching
URL: https://github.com/apache/spark/pull/24590#discussion_r283375792
##########
File path: docs/structured-streaming-kafka-integration.md
##########
@@ -416,6 +416,24 @@ The following configurations are optional:
</tr>
</table>
+### Consumer Caching
+
+It's time consuming to initialize Kafka consumers especially in streaming scenarios where processing time is key factor.
+Because of this Spark caches Kafka consumers on executors. The caching key built-up from the following information:
+* Topic name
+* Topic partition
+* Group ID
+
+The size of the cache is limited by <code>spark.kafka.consumer.cache.capacity</code> (default: 64).
+If the mentioned threshold reached it tries to remove the least-used entry which is currently not in use.
Review comment:
If this threshold is reached,
entry that is currently
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org