1
推拉窗我用这个代码来执行我的测试(Flink Quick Start):坏逆足与弗林克
val text = env.socketTextStream("localhost", port, '\n')
// parse the data, group it, window it, and aggregate the counts
val windowCounts = text
.flatMap { w => w.split("\\s") }
.map { w => WordWithCount(w, 1) }
.keyBy("word")
.timeWindow(Time.minute(15))
.sum("count")
与此代码我有超过65 000输入/ Seconde系列
如果我改变
timeWindow(Time.minute(15))
通过
timeWindow(Time.minutes(15), Time.seconds(1))
我有少于2 500输入/ seconde
有什么办法可以有更好的性能与滑动Windows?