You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Mohit Anchlia <mo...@gmail.com> on 2017/02/06 21:34:21 UTC

Dealing with latency in Sink

What is the best way to dynamically adapt and tune down number of tasks
created to write/read to a sink when sink slows down or the latency to sink
increases? I am looking at the sink interface but don't see a way to
influence flink to reduce the number of tasks or throttle the volume down
to the sink. What is the best way to deal with this scenario?

Re: Dealing with latency in Sink

Posted by Robert Metzger <rm...@apache.org>.
Hi Mohit,

Flink doesn't allow dynamic up or downscaling of parallel operator
instances at runtime. However, you can stop and restore from a savepoint
with a different parallelism. This way, you can adopt to workload changes.

Flink's handling of backpressure is very implicit. If you want to throttle
a sink, you can just accept fewer records per second (by not returning from
the invoke() call) to throttle the entire topology.

I think we can provide you much better support if you can provide us with
some more details on your problem (which system do you want to connect to,
what are your latency / throughput requirements, how much does the load
change)

On Mon, Feb 6, 2017 at 10:34 PM, Mohit Anchlia <mo...@gmail.com>
wrote:

> What is the best way to dynamically adapt and tune down number of tasks
> created to write/read to a sink when sink slows down or the latency to sink
> increases? I am looking at the sink interface but don't see a way to
> influence flink to reduce the number of tasks or throttle the volume down
> to the sink. What is the best way to deal with this scenario?
>