You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "qqu0127 (via GitHub)" <gi...@apache.org> on 2023/04/28 20:51:35 UTC

[GitHub] [helix] qqu0127 opened a new pull request, #2463: Initial commit for capacity based throttler for state transition control

qqu0127 opened a new pull request, #2463:
URL: https://github.com/apache/helix/pull/2463

   ### Issues
   
   - [ ] My PR addresses the following Helix issues and references them in the PR description:
   
   
   ### Description
   
   - [ ] Here are some details about my PR, including screenshots of any UI changes:
   
   TBD
   
   ### Tests
   
   - [X] The following tests are written for this issue:
   New test in `TestCapacityBasedThrottler.java`
   
   - The following is the result of the "mvn test" command on the appropriate module:
   
   (If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
   
   ### Changes that Break Backward Compatibility (Optional)
   
   - My PR contains changes that break backward compatibility or previous assumptions for certain methods or API. They include:
   
   (Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
   
   ### Documentation (Optional)
   
   - In case of new functionality, my PR adds documentation in the following wiki page:
   
   (Link the GitHub wiki you added)
   
   ### Commits
   
   - My commits all reference appropriate Apache Helix GitHub issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Code Quality
   
   - My diff has been formatted using helix-style.xml 
   (helix-style-intellij.xml if IntelliJ IDE is used)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] qqu0127 commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "qqu0127 (via GitHub)" <gi...@apache.org>.
qqu0127 commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1536429206

   > I was got a wrong impression on the these throttler will be in intermediateStage for throttling.
   > 
   > If it is only used in WAGED, I would suggest to name it "Filter" instead of throttler. Because there is already a state transition throttler in intermediateStage.
   
   This will be applied to intermediateStage. It is NOT reserved for WAGED, it can apply to any rebalancer. Because the state transition is in planning phase (how we schedule movement), which is after the idealstate is calculated.
   In my opinion, this will be merged with the state transition throttler eventually


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] junkaixue commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1535504290

   I have a general thought on this. This is more like N -> N+1 triggered problem in BestPossibleStage and we solve it at IntermediateStage for throttling.
   
   I am more preferring to have consistent behavior. For example, we found delay problem in WAGED, then we solve it in WAGED. If the N -> N+1 is problem in WAGED, we should solve it in WAGED. WAGED is the place to own the constraint-based info, filtering and so on. Apply it to other stages could not be that valuable.
   
   With this implementation, the behavior of throttling will be hard to explain because it is mixing of: constraints and message throttling. I can foresee the even worse debuggability of introducing this when users asks why this throttled, why this not.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] junkaixue commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1536567902

   > > I was got a wrong impression on the these throttler will be in intermediateStage for throttling.
   > > If it is only used in WAGED, I would suggest to name it "Filter" instead of throttler. Because there is already a state transition throttler in intermediateStage.
   > 
   > This will be applied to intermediateStage. It is NOT reserved for WAGED, it can apply to any rebalancer. Because the state transition is in planning phase (how we schedule movement), which is after the idealstate is calculated. In my opinion, this will be merged with the state transition throttler eventually
   
   Ah... Then I would suggest not do this. The reason is that we followed similar pattern to solve the problem. For example, if it is delay caused wrong assignment, then let's resolve it in best possible. This is same story here. So we can keep each stage do its own work.
   
   Also adding this hybrid (assignment and throttling) mode, can cause the more complexity in throttling and the debugging will be much much harder. Say if user would like to ask why the message has been throttled, previous logic is simple, we can clear tell it is throttled because of out of quota. But now, we need to go through same analysis for assignment and tell the reason of why the state transition is throttled.
   
   
   @jiajunwang what do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] junkaixue closed pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue closed pull request #2463: Initial commit for capacity based throttler for state transition control
URL: https://github.com/apache/helix/pull/2463


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] junkaixue commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1535504669

   @jiajunwang I think you introduced the N -> N + 1 in WAGED, you should have more context.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] junkaixue commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1535513003

   I was got a wrong impression on the these throttler will be in intermediateStage for throttling.
   
   If it is only used in WAGED, I would suggest to name it "Filter" instead of throttler. Because there is already a state transition throttler in intermediateStage.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] desaikomal commented on pull request #2463: Initial commit for capacity based throttler for state transition control

Posted by "desaikomal (via GitHub)" <gi...@apache.org>.
desaikomal commented on PR #2463:
URL: https://github.com/apache/helix/pull/2463#issuecomment-1537523984

   @junkaixue , @jiajunwang , @NealSun96 - can you please look at the design proposal and let us know your view?
   I do like the separation of concern approach where BestPossibleAssignment does what is the right assignment and we have another stage which does the "filtering" / "throttlng" based on the current state. One stage is doing pure computation while other is trying to take us towards that ideal computed state and doing right "ordering". If you guys think, we need to introduce one additional stage in the pipeline can help, we can think about that too.
   But let us close on this please.
   thanks,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org