You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by Jason_H <hy...@163.com> on 2022/09/26 02:16:23 UTC
flink的消费速率是否可以调整
Hi,各位大佬:
我们在使用flink消费kafka的时候,是否可以在代码中自定义消费速率,来调整源端的消费能力。
| |
Jason_H
|
|
hyb_hello@163.com
|
Re:Re: flink的消费速率是否可以调整
Posted by "casel.chen" <ca...@126.com>.
kafka consumer config里面有一些配置参数可以达到限速功能,例如
max.partition.fetch.bytes
fetch.max.bytes
max.poll.records
详情可以参考 https://kafka.apache.org/24/documentation.html#consumerconfigs
在 2022-09-26 23:27:30,"yidan zhao" <hi...@gmail.com> 写道:
>应该不行吧,kafka client本身就没有限速的功能。
>
>Jason_H <hy...@163.com> 于2022年9月26日周一 10:17写道:
>>
>> Hi,各位大佬:
>> 我们在使用flink消费kafka的时候,是否可以在代码中自定义消费速率,来调整源端的消费能力。
>>
>>
>> | |
>> Jason_H
>> |
>> |
>> hyb_hello@163.com
>> |
Re: flink的消费速率是否可以调整
Posted by yidan zhao <hi...@gmail.com>.
应该不行吧,kafka client本身就没有限速的功能。
Jason_H <hy...@163.com> 于2022年9月26日周一 10:17写道:
>
> Hi,各位大佬:
> 我们在使用flink消费kafka的时候,是否可以在代码中自定义消费速率,来调整源端的消费能力。
>
>
> | |
> Jason_H
> |
> |
> hyb_hello@163.com
> |