how to handle back pressure at sink operator in flink

113 Views Asked by At

my flink job pretends to fail at sink operator, which sends data to mqtt.

I have tried .setBufferTimeout(0) at the one before sink operator and increase parallelism, as you can see in the pic. But it doesn't work. Can anyone help? Thanks.

enter image description here

1

There are 1 best solutions below

1
Juiceyang On
  1. According to flink document

A buffer timeout of 0 should be avoided, because it can cause severe performance degradation.

  1. What sink connector do you use?

  2. What's the batch size of your sink operator?

All these factors will have a relationship with the write performance of your sink.