Convert properties in FIXED_PROPERTIES to be non-fixed#5803
Convert properties in FIXED_PROPERTIES to be non-fixed#5803ibilley7 wants to merge 2 commits intoapache:mainfrom
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_MINTHREADSMANAGER_TABLET_REFRESH_MAXTHREADSRemoved these non-fixed properties that were labeled as fixed:
MANAGER_MINTHREADSSSERV_MINTHREADSTSERV_MINTHREADSCOMPACTOR_MINTHREADSAll of the other properties in FIXED_PROPERTIES besides these need to be evaluated similarly in another PR.
Partial work for #5696