Xintong Song created FLINK-21479:
------------------------------------

             Summary: Provide read-only interface of TaskManagerTracker to 
ResourceAllocationStrategy
                 Key: FLINK-21479
                 URL: https://issues.apache.org/jira/browse/FLINK-21479
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / Checkpointing
            Reporter: Xintong Song
            Assignee: Yangze Guo


This is a predecessor for optimizing performance of 
{{ResourceAllocationStrategy}} (FLINK-21174).

To optimize the performance, we will need to build and maintain index for 
registered/pending resources. As the strategy is designed to be stateless, we 
propose to build and maintain the index at {{TaskManagerTracker}}, providing 
only access methods to the strategy.

To decouple index accessing from the common {{FineGrainedSlotManager}} 
workflow, while preventing the strategy from directly modifying the states, we 
can introduce a read-only interface of {{TaskManagerTracker}} and pass it to 
the strategy. In this way, we can easily extend the read-only interface to 
provide more index-accessing methods in future.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to