回复:Multiple consumers on a subpartition

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

回复:Multiple consumers on a subpartition

Zhijiang(wangzhijiang999)
Hi albert,

    As I know, if the upstream data will be consumed by multiple consumers, it will generate multiple subpartitions, and each subpartition will correspond to one input channel consumer.
So it is one-to-one correspondence among subpartition -> subpartition view -> input channel.

cheers,
zhijiang
------------------------------------------------------------------
发件人:albertjonathan <[hidden email]>
发送时间:2017年4月26日(星期三) 02:37
收件人:user <[hidden email]>
主 题:Multiple consumers on a subpartition

Hello,

Is there a way Flink allow a (pipelined) subpartition to be consumed by
multiple consumers? If not, would it make more sense to implement it as
multiple input channels for a single subpartition or multiple subpartition
views for each input channel?

Any suggestion is appreciated.

Thanks



--
View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Multiple-consumers-on-a-subpartition-tp12809.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: Multiple consumers on a subpartition

Ufuk Celebi
Adding to what Zhijiang said: I think the way to go would be to create
multiple "read views" over the pipelined subpartition. You would have
to make sure that the initial reference count of the partition buffers
is incremented accordingly. The producer will be back pressured by
both consumers now. This could be undesired in some scenarios.
Currently, both consumers are independent of each other by creating
multiple partitions (with their own subpartitions) for each consumer.



On Wed, Apr 26, 2017 at 5:58 AM, Zhijiang(wangzhijiang999)
<[hidden email]> wrote:

> Hi albert,
>
>     As I know, if the upstream data will be consumed by multiple consumers,
> it will generate multiple subpartitions, and each subpartition will
> correspond to one input channel consumer.
> So it is one-to-one correspondence among subpartition -> subpartition view
> -> input channel.
>
> cheers,
> zhijiang
>
> ------------------------------------------------------------------
> 发件人:albertjonathan <[hidden email]>
> 发送时间:2017年4月26日(星期三) 02:37
> 收件人:user <[hidden email]>
> 主 题:Multiple consumers on a subpartition
>
> Hello,
>
> Is there a way Flink allow a (pipelined) subpartition to be consumed by
> multiple consumers? If not, would it make more sense to implement it as
> multiple input channels for a single subpartition or multiple subpartition
> views for each input channel?
>
> Any suggestion is appreciated.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Multiple-consumers-on-a-subpartition-tp12809.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple consumers on a subpartition

albertjonathan
Thank you for your responses and suggestions. I appreciate it.

Albert

On Wed, Apr 26, 2017 at 4:19 AM, Ufuk Celebi <[hidden email]> wrote:
Adding to what Zhijiang said: I think the way to go would be to create
multiple "read views" over the pipelined subpartition. You would have
to make sure that the initial reference count of the partition buffers
is incremented accordingly. The producer will be back pressured by
both consumers now. This could be undesired in some scenarios.
Currently, both consumers are independent of each other by creating
multiple partitions (with their own subpartitions) for each consumer.



On Wed, Apr 26, 2017 at 5:58 AM, Zhijiang(wangzhijiang999)
<[hidden email]> wrote:
> Hi albert,
>
>     As I know, if the upstream data will be consumed by multiple consumers,
> it will generate multiple subpartitions, and each subpartition will
> correspond to one input channel consumer.
> So it is one-to-one correspondence among subpartition -> subpartition view
> -> input channel.
>
> cheers,
> zhijiang
>
> ------------------------------------------------------------------
> 发件人:albertjonathan <[hidden email]>
> 发送时间:2017年4月26日(星期三) 02:37
> 收件人:user <[hidden email]>
> 主 题:Multiple consumers on a subpartition
>
> Hello,
>
> Is there a way Flink allow a (pipelined) subpartition to be consumed by
> multiple consumers? If not, would it make more sense to implement it as
> multiple input channels for a single subpartition or multiple subpartition
> views for each input channel?
>
> Any suggestion is appreciated.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Multiple-consumers-on-a-subpartition-tp12809.html
> Sent from the Apache Flink User Mailing List archive. mailing list archive
> at Nabble.com.
>
>