-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Executor 2.0: Per-operator stream assignment policy (#5620)
Assignment algorithm: - Each node holds a set of stream ids that are considered ready after the node is done. Each "ready" stream id is associated with a use count. When the stream id is used, it's use count is bumped up by 1. The nodes' ready sets contain the use count at the time at which they were inserted into the ready set. - The stream for the current node (nodes are processed in topological order) is obtained by looking at the "ready" sets of the preceding nodes and taking the lowest id which have use count equal to one found int the ready set. If the ready sets were empty (or all streams have had their use count bumped up since insertion into the ready set), a new stream id is generated. - When the stream id is assigned to a node, it's use count is bumped up by 1 and it's inserted into the current node's ready set. - The ready set for the current node is a union of input nodes' ready set's + current stream id. ---- Signed-off-by: Michał Zientkiewicz <mzient@gmail.com>
- Loading branch information
Showing
2 changed files
with
688 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.