You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (JIRA)" <ji...@apache.org> on 2019/02/01 01:41:00 UTC

[jira] [Commented] (HBASE-21764) Size of in-memory compaction thread pool should be configurable

    [ https://issues.apache.org/jira/browse/HBASE-21764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16757863#comment-16757863 ] 

Duo Zhang commented on HBASE-21764:
-----------------------------------

Let me commit. [~openinx] is probably on his way home. This is the last pending issue for 2.1.3 and 2.0.5.

> Size of in-memory compaction thread pool should 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.v10.patch, HBASE-21764.v2.patch, HBASE-21764.v3.patch, HBASE-21764.v4.patch, HBASE-21764.v5.patch, HBASE-21764.v6.patch, HBASE-21764.v7.patch, HBASE-21764.v8.patch, HBASE-21764.v9.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)