Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ object Constants {
val DEFAULT_VALUE_COMBINER_CACHE_SIZE = ValueCombinerCacheSize(100)
val DEFAULT_ACK_ON_ENTRY = AckOnEntry(false)
val DEFAULT_MAX_EMIT_PER_EXECUTE = MaxEmitPerExecute(Int.MaxValue)
val DEFAULT_SUMMER_BATCH_MULTIPLIER = SummerBatchMultiplier(1)
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ case class FlatMapBoltProvider(storm: Storm, stormDag: Dag[Storm], node: StormNo
// Query to get the summer paralellism of the summer down stream of us we are emitting to
// to ensure no edge case between what we might see for its parallelism and what it would see/pass to storm.
val summerParalellism = getOrElse(DEFAULT_SUMMER_PARALLELISM, summer)
val summerBatchMultiplier = getOrElse(DEFAULT_SUMMER_BATCH_MULTIPLIER, summer)

// This option we report its value here, but its not user settable.
val keyValueShards = executor.KeyValueShards(summerParalellism.parHint)
val keyValueShards = executor.KeyValueShards(summerParalellism.parHint * summerBatchMultiplier.get)
logger.info("[{}] keyValueShards : {}", nodeName, keyValueShards.get)

val operation = foldOperations[T, (K, V)](node.members.reverse)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ object SummerStormMetrics {
def unapply(metrics: SummerStormMetrics) = Some(metrics.metrics)
}
class SummerStormMetrics(val metrics: () => TraversableOnce[StormMetric[_]])


case class SummerBatchMultiplier(get: Int)