It seems that the number of slots allocated should be equal to the parallelism.
And the number of task managers should be equal to parallelism/(slot per TM).
But the application below is not like this.
The parallelism is set to 140, and one slot per TM.
But only 115 slots are allocated.
And the application throwed an exception after several minutes.
The exception told that "Could not allocate all requires slots within timeout of 300000 ms. Slots required: 470, slots allocated: 388".
There are several questions here.
- "Slots required: 470", the calculation of this number seems to be regardless of slot share. Why?
- "slots allocated: 388", in fact, I only have 195 slots left, and the number of allocated slots are 115. Why?
- The parallelism is set to 140, but only 115 slots are allocated. Why?