Hello, I have a Kinesis stream that is sending dat...
# troubleshooting
s
Hello, I have a Kinesis stream that is sending data in only one shard. So the Flink consumer consumes this stream with just one subtask. I can see that the subsequent stages are processing it equally, since the records are keyed. Will this consumer impact performance when there are higher number of messages sent?
j
Yes, ideally you'd force a rebalance here after the source operator to distribute the data
s
Thanks. after consuming this stream, the next step shuffles it. so would this consumer still be a bottleneck on performance/checkpointing during high loads?
Copy code
DataStream<Obj> messages =
env.addSource(flinkKinesisConsumer).setParallelism(12)
               .name("messages").shuffle();
j
I would recommend setting the source (consumer) to parallelism = # of shards, then rebalance to the rest of your operators downstream
s
ok. thank you.