You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Constantinos Papadopoulos <cp...@gmail.com> on 2019/10/21 07:24:46 UTC
multi-tenancy without a kafka partition per tenant
We have a multi-tenancy scenario where:
- the source will be Kafka, and a Kafka partition could contain data
from multiple tenants
- our sink will send data to a different DB instance, depending on the
tenant
Is there a way to prevent slowness in one tenant from slowing other
tenants, without assigning kafka partitions to tenants?
My understanding is that the answer is "no", but I'm curious whether I'm
missing a cool way to accomplish this.
In the absence of such a way, I 'believe' that slowness in one tenant’s DB
instance will cause backpressure all the way back to the source (Kafka
partition), and thus Flink will slow its reading from the given Kafka
partition, thus also impacting the rest of the tenants that reside in that
Kafka partition.
Re: multi-tenancy without a kafka partition per tenant
Posted by vino yang <ya...@gmail.com>.
Hi Constantinos,
I think your analysis is correct, if you have a multi-tenant scenario, but
there is no distinction in Kafka. Then Flink can't treat different tenants
differently. It is easy to form a data hotspot problem for the difference
in the data volume of different tenants.
A compromise is handled by Flink and Kafka to split your data source by
tenant, and then let Flink distinguish between different tenants.
Best,
Vino
Constantinos Papadopoulos <cp...@gmail.com> 于2019年10月21日周一 下午3:25写道:
> We have a multi-tenancy scenario where:
>
> - the source will be Kafka, and a Kafka partition could contain data
> from multiple tenants
> - our sink will send data to a different DB instance, depending on the
> tenant
>
>
> Is there a way to prevent slowness in one tenant from slowing other
> tenants, without assigning kafka partitions to tenants?
>
>
> My understanding is that the answer is "no", but I'm curious whether I'm
> missing a cool way to accomplish this.
>
>
> In the absence of such a way, I 'believe' that slowness in one tenant’s DB
> instance will cause backpressure all the way back to the source (Kafka
> partition), and thus Flink will slow its reading from the given Kafka
> partition, thus also impacting the rest of the tenants that reside in that
> Kafka partition.
>
>
>
>