Skip to content

Conversation

@xx01cyx
Copy link
Contributor

@xx01cyx xx01cyx commented Mar 15, 2022

What's changed and what's your intention?

Please explain IN DETAIL what the changes are in this PR and why they are needed:

  • Summarize your change
    • Alter streaming schedule strategy by introducing parallel units.
    • Refactor streaming scheduler. Now the scheduler performs scheduling on fragment instead of actors.

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link

#670
#858

@xx01cyx xx01cyx requested review from fuyufjh and yezizp2012 and removed request for yezizp2012 March 15, 2022 10:24
@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #940 (bc37156) into main (58da156) will decrease coverage by 0.12%.
The diff coverage is 81.20%.

@@             Coverage Diff              @@
##               main     #940      +/-   ##
============================================
- Coverage     71.80%   71.68%   -0.13%     
  Complexity     2766     2766              
============================================
  Files           971      972       +1     
  Lines         56773    56927     +154     
  Branches       1787     1787              
============================================
+ Hits          40767    40809      +42     
- Misses        15116    15228     +112     
  Partials        890      890              
Flag Coverage Δ
java 61.23% <ø> (ø)
rust 75.69% <81.20%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rust/meta/src/rpc/service/stream_service.rs 100.00% <ø> (ø)
rust/meta/src/cluster/mod.rs 70.50% <34.78%> (-3.35%) ⬇️
rust/meta/src/stream/stream_manager.rs 74.00% <76.47%> (+0.05%) ⬆️
rust/meta/src/stream/scheduler.rs 93.45% <92.68%> (+2.79%) ⬆️
rust/frontend/src/scheduler/plan_fragmenter.rs 97.31% <100.00%> (-0.03%) ⬇️
rust/meta/src/manager/hash_dispatch.rs 90.24% <100.00%> (+0.12%) ⬆️
rust/meta/src/model/stream.rs 72.05% <100.00%> (+0.84%) ⬆️
rust/meta/src/stream/fragmenter.rs 80.43% <100.00%> (ø)
rust/meta/src/stream/test_fragmenter.rs 98.96% <100.00%> (+0.28%) ⬆️
...ream/src/executor/managed_state/aggregation/mod.rs 76.59% <0.00%> (-3.41%) ⬇️
... and 14 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@xx01cyx xx01cyx changed the title Feat/schedule feat(meta): alter streaming schedule strategy Mar 15, 2022
@github-actions github-actions bot added the type/feature Type: New feature. label Mar 15, 2022
Copy link
Collaborator

@fuyufjh fuyufjh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the rest

Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM

@skyzh
Copy link
Contributor

skyzh commented Mar 16, 2022

can we replace node_id with worker_node_id? There used to be another nodeId in proto representing the id of executor in each fragment, which might be confusing...

@xx01cyx xx01cyx merged commit 4255938 into main Mar 16, 2022
@xx01cyx xx01cyx deleted the feat/schedule branch March 16, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature Type: New feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants