Slide 30
Slide 30 text
• 3단계: 남은 Partition들을 순차적으로 할당
- Topic별로 위 과정을 반복
3.7 네이버의 해법: RackAwareRangeAssignor (3)
Topic 0
Partition 0
[ 4, 3, 3, 2 ]
Partition 1
[ 1, 2, 5, 3 ]
Partition 2
[ 3, 3, 3, 2 ]
Partition 3
[ 1, 1, 4, 4 ]
Topic 1
Partition 0
[ 1, 4, 5, 5 ]
Partition 1
[ 1, 4, 4, 2 ]
Partition 2
[ 5, 2, 2, 3 ]
Partition 3
[ 5, 3, 5, 3 ]
Consumer 0
(client.rack = 1)
[ T0P1, T0P3, T1P0, T1P1 ]
Consumer 1
(client.rack = 4)
[ T0P0, T1P3 ]
Consumer 2
(client.rack = 2)
[ T0P2 , T1P2 ]
Consumer Group