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

Zheng Hu updated HBASE-21764:
-----------------------------
    Release Note: Introduced an new config key in this issue: 
hbase.regionserver.inmemory.compaction.pool.size. the default value would be 
10.  you can configure this to set the pool size of in-memory compaction pool. 
Note that all memstores in one region server will share the same pool, so if 
you have many regions in one region server,  you need to set this larger to 
compact faster for better read performance.

> Size of in-memory compaction thread pool shoud be configurable
> --------------------------------------------------------------
>
>                 Key: HBASE-21764
>                 URL: https://issues.apache.org/jira/browse/HBASE-21764
>             Project: HBase
>          Issue Type: Sub-task
>          Components: in-memory-compaction
>            Reporter: Zheng Hu
>            Assignee: Zheng Hu
>            Priority: Major
>             Fix For: 3.0.0, 2.2.0, 2.1.3, 2.0.5
>
>         Attachments: HBASE-21764.v1.patch, HBASE-21764.v2.patch, 
> HBASE-21764.v3.patch
>
>
> In RegionServicesForStores,  we can see : 
> {code}
>   private static final int POOL_SIZE = 10;
>   private static final ThreadPoolExecutor INMEMORY_COMPACTION_POOL =
>       new ThreadPoolExecutor(POOL_SIZE, POOL_SIZE, 60, TimeUnit.SECONDS,
>           new LinkedBlockingQueue<>(),
>           new ThreadFactory() {
>             @Override
>             public Thread newThread(Runnable r) {
>               String name = Thread.currentThread().getName() + 
> "-inmemoryCompactions-" +
>                   System.currentTimeMillis();
>               return new Thread(r, name);
>             }
>           });
> {code}
> The pool size should be configurable, because if many regions on a rs,  the 
> default 10 threads will be not enough.  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to