@OnlyForTest
    protected static ThreadPoolExecutor getExecutor(String groupId) {
        return GROUP_THREAD_POOLS.getOrDefault(groupId, GlobalThreadPoolHolder.INSTANCE);
    }
You can specify the ThreadPoolExecutor yourself here

@param groupId  Raft-Group
@param executor To specify ThreadPoolExecutor
jraft-core/src/main/java/com/alipay/sofa/jraft/util/ThreadPoolsFactory.java