Skip to content

Commit 7849daa

Browse files
committed
tune parameters
1 parent 7e515ba commit 7849daa

File tree

1 file changed

+5
-4
lines changed
  • interactive_engine/groot-module/src/main/java/com/alibaba/graphscope/groot/store

1 file changed

+5
-4
lines changed

interactive_engine/groot-module/src/main/java/com/alibaba/graphscope/groot/store/StoreService.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class StoreService implements MetricsAgent {
6868
private ExecutorService writeExecutor;
6969
private ExecutorService ingestExecutor;
7070
private ExecutorService garbageCollectExecutor;
71-
private ExecutorService downloadExecutor;
71+
private ThreadPoolExecutor downloadExecutor;
7272
private final boolean enableGc;
7373
private volatile boolean shouldStop = true;
7474

@@ -129,13 +129,14 @@ public void start() throws IOException {
129129
logger.info("StoreService started. storeId [" + this.storeId + "]");
130130
this.downloadExecutor =
131131
new ThreadPoolExecutor(
132-
0,
133-
8,
134-
0L,
132+
16,
133+
16,
134+
1000L,
135135
TimeUnit.MILLISECONDS,
136136
new LinkedBlockingQueue<>(),
137137
ThreadFactoryUtils.daemonThreadFactoryWithLogExceptionHandler(
138138
"store-download", logger));
139+
this.downloadExecutor.allowCoreThreadTimeOut(true);
139140
logger.info("StoreService started. storeId [" + this.storeId + "]");
140141
}
141142

0 commit comments

Comments
 (0)