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/03 21:24: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 ]
Bharath Vissapragada updated HBASE-25547:
-----------------------------------------
Status: Patch Available (was: Open)
> 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
>
> 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)