-
Notifications
You must be signed in to change notification settings - Fork 467
Convert properties in FIXED_PROPERTIES to be non-fixed #5803
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
base: main
Are you sure you want to change the base?
Conversation
Changed these properties to be non-fixed (made no-fixed by creating a thread pool in the run method of Manager that "refresh" these properties on an interval): * `MANAGER_TABLET_REFRESH_MINTHREADS` * `MANAGER_TABLET_REFRESH_MAXTHREADS` Removed these non-fixed properties that were labeled as fixed: * `MANAGER_MINTHREADS` * `SSERV_MINTHREADS` * 'TSERV_MINTHREADS' * `COMPACTOR_MINTHREADS` All of the other properties in FIXED_PROPERTIES besides these need to be evaluated similarly. Partial work for apache#5696
Please take a look at |
So would you recommend using the resizePool method, or just more so modeling the code based off of it? |
I would recommend reusing it if you can. If there is something that you need that it's not currently doing, then lets fix it or add a new |
I noticed that the
Does that mean in the new |
Right, this was the logic that I was mentioning. IIRC we had to modify the core/max in a specific order based on the JDK internal code at that time. The current code just resizes based on the max size property IIRC because I don't think we resize based on the min/core size. You are trying to do something a little different than what we have done in the past, so you likely need a new method to resize the core and max independently, but might need to retain some of the logic from the existing resizePool method. |
…ded `resizeCorePool()` method.
My internship is over, so I would need someone to pick up this ticket if more work needs to be done. |
Changed these properties to be non-fixed (made no-fixed by creating a thread pool in the run method of Manager that "refresh" these properties on an interval):
MANAGER_TABLET_REFRESH_MINTHREADS
MANAGER_TABLET_REFRESH_MAXTHREADS
Removed these non-fixed properties that were labeled as fixed:
MANAGER_MINTHREADS
SSERV_MINTHREADS
TSERV_MINTHREADS
COMPACTOR_MINTHREADS
All of the other properties in FIXED_PROPERTIES besides these need to be evaluated similarly in another PR.
Partial work for #5696