-
Notifications
You must be signed in to change notification settings - Fork 660
Revert "Thread manager instantiation in the validator (#4603)" #5132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…)" This reverts commit e48672c.
@steviez the plan was to start adding workload to it but that got blocked. Thanks for bringing this up! |
@alessandrod should be part of the design discussion as well |
let's not pollute this pr with the discussion |
Couldn't this testing be done before we merged #4603 ? Ie, keep a branch and test / collect data / etc, and then merge the instantiation of As-is, master and the v2.2 branch currently instantiate a
To be clear, this PR isn't me saying "we're not doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any merit to retaining the dead code? should we happen to decide that this is in fact the way to go, we can recover everything from history
That code was added in #3890 so we'd seemingly revert that (and #4692) separately. I have less strong opinions about this aspect but I agree that we could recover this from history (revert the revert commit 😆) |
my vote would be to unwind the stack if this one goes |
Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis. |
This reverts commit e48672c.
Problem
It isn't clear if the thread manager is the way we want to go long term. We should get consensus amongst the team / testing / data that shows benefit (including worst case scenarios) before instantiating the object in production. At the present, we spin up 24 extra threads that are unused as far as I am aware.
Summary of Changes
This reverts the commit that create a
ThreadManager
inValidator
; the code remains but unused byagave-validator