Changing number of partitions for a topic

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

Changing number of partitions for a topic

Suraj Puvvada
Hello,

I have a flink job that reads from a source topic that currently has 4 partitions and I need to increase the partition count to 8. 

Do you need to restart the job for that to take effect ?
How does it work in case there is persistent state (like a window operator) involved ?

Any design documents on how partition mapping works would be very helpful. 

Thanks
Suraj
Reply | Threaded
Open this post in threaded view
|

Re: Changing number of partitions for a topic

Benchao Li
Hi Suraj,

There is a config option[1] to enable partition discovery, which is disabled by default. 
The community discussed to enable it by default[2], but only aims to the new Source API.


Suraj Puvvada <[hidden email]> 于2020年4月21日周二 上午6:01写道:
Hello,

I have a flink job that reads from a source topic that currently has 4 partitions and I need to increase the partition count to 8. 

Do you need to restart the job for that to take effect ?
How does it work in case there is persistent state (like a window operator) involved ?

Any design documents on how partition mapping works would be very helpful. 

Thanks
Suraj


--
Benchao Li
School of Electronics Engineering and Computer Science, Peking University
Tel:+86-15650713730
Email: [hidden email]; [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Changing number of partitions for a topic

Suraj Puvvada
Thanks, I'll check it out. 

On Mon, Apr 20, 2020 at 6:23 PM Benchao Li <[hidden email]> wrote:
Hi Suraj,

There is a config option[1] to enable partition discovery, which is disabled by default. 
The community discussed to enable it by default[2], but only aims to the new Source API.


Suraj Puvvada <[hidden email]> 于2020年4月21日周二 上午6:01写道:
Hello,

I have a flink job that reads from a source topic that currently has 4 partitions and I need to increase the partition count to 8. 

Do you need to restart the job for that to take effect ?
How does it work in case there is persistent state (like a window operator) involved ?

Any design documents on how partition mapping works would be very helpful. 

Thanks
Suraj


--
Benchao Li
School of Electronics Engineering and Computer Science, Peking University
Tel:+86-15650713730
Email: [hidden email]; [hidden email]