Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is SlotSharingGroup in Apache Flink?

Tags:

apache-flink

Reference : https://ci.apache.org/projects/flink/flink-docs-master/api/java/org/apache/flink/runtime/jobmanager/scheduler/SlotSharingGroup.html

Definition : "A slot sharing units define which different task (from different job vertices) can be deployed together within a slot."

Can somebody elaborate it more?

like image 429
kalpesh Avatar asked Oct 30 '25 19:10

kalpesh


1 Answers

A slot defines a fixed slice of resources of a TaskManager. Every subtask (parallel instance of an operator) needs a slot in order to be executed.

Since not all operators are equally resource intensive, some of them need more memory or cpu cycles than others. In order to better utilize resources, Flink allows subtasks of different operators to be deployed into the same slot.

Which operators can be deployed into the same slot is controlled by the SlotSharingGroup. Tasks which share the same slot sharing group can be executed in the same slot and, thus, share resources. By default, all operators are assigned the same SlotSharingGroup.

More information about Flink's scheduling and internal architecture can be found here and here.

like image 73
Till Rohrmann Avatar answered Nov 02 '25 06:11

Till Rohrmann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!