You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2021/12/09 01:22:00 UTC

[jira] [Updated] (HBASE-25547) Thread pools should release unused resources

     [ https://issues.apache.org/jira/browse/HBASE-25547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Kyle Purtell updated HBASE-25547:
----------------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

The PRs were merged.

> Thread pools should release unused resources
> --------------------------------------------
>
>                 Key: HBASE-25547
>                 URL: https://issues.apache.org/jira/browse/HBASE-25547
>             Project: HBase
>          Issue Type: Improvement
>          Components: master, regionserver
>    Affects Versions: 3.0.0-alpha-1, 1.7.0, 2.5.0
>            Reporter: Bharath Vissapragada
>            Assignee: Bharath Vissapragada
>            Priority: Minor
>             Fix For: 2.5.0, 3.0.0-alpha-2
>
>
> On this [PR|https://github.com/apache/hbase/pull/2909] [~stack] rightly pointed out that the thread pool just spins up threads that remain idle for 99.999% of time. Java's [ThreadPoolExecutor|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ThreadPoolExecutor.html] lets us tune some configurations like the following for releasing the unused resources
> * corePoolSize
> * keepAliveTimeMs
> * allowCoreThreadTimeOut
> Current code makes it difficult to pass along these configurations to the executor service. Refactor and fix the defaults for low-priority thread pools to release resources quicker.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)