Commit bcb2bc6c authored by liaowenwu's avatar liaowenwu

修改连接数

parent 40cd302b
......@@ -39,7 +39,7 @@ public class MysqlDataSlideSink extends RichSinkFunction<Tuple6<String,String,St
@Override
public void open(Configuration parameters) throws Exception {
executorService = new ThreadPoolExecutor(5, 10, 60,
executorService = new ThreadPoolExecutor(5, 5, 60,
TimeUnit.SECONDS,
new LinkedBlockingDeque<>(QUEUE_CAPACITY),
new ThreadPoolExecutor.CallerRunsPolicy());
......
......@@ -34,7 +34,7 @@ public class MysqlDataTransferSink extends RichSinkFunction<String> {
@Override
public void open(Configuration parameters) throws Exception {
executorService = new ThreadPoolExecutor(8, 20, 60,
executorService = new ThreadPoolExecutor(5, 5, 60,
TimeUnit.SECONDS,
new LinkedBlockingDeque<>(QUEUE_CAPACITY),
new ThreadPoolExecutor.CallerRunsPolicy());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment