You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Zheng Hu (JIRA)" <ji...@apache.org> on 2019/01/23 15:38:00 UTC

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

Zheng Hu created HBASE-21764:
--------------------------------

             Summary: 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
             Fix For: 3.0.0, 2.2.0, 2.1.3, 2.0.5


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)