You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Bharath Vissapragada (Jira)" <ji...@apache.org> on 2021/02/02 19:07:00 UTC

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

Bharath Vissapragada created HBASE-25547:
--------------------------------------------

             Summary: 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


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.3.4#803005)