@@ -17,7 +17,9 @@ use std::path::PathBuf;
17
17
use std:: sync:: Arc ;
18
18
19
19
use anyhow:: Context ;
20
- use risingwave_common:: config:: { CompactionConfig , DefaultParallelism , ObjectStoreConfig } ;
20
+ use risingwave_common:: config:: {
21
+ CompactionConfig , DefaultParallelism , ObjectStoreConfig , RpcClientConfig ,
22
+ } ;
21
23
use risingwave_common:: session_config:: SessionConfig ;
22
24
use risingwave_common:: system_param:: reader:: SystemParamsReader ;
23
25
use risingwave_common:: { bail, system_param} ;
@@ -254,6 +256,10 @@ pub struct MetaOpts {
254
256
pub actor_cnt_per_worker_parallelism_soft_limit : usize ,
255
257
256
258
pub license_key_path : Option < PathBuf > ,
259
+
260
+ pub compute_client_config : RpcClientConfig ,
261
+ pub stream_client_config : RpcClientConfig ,
262
+ pub frontend_client_config : RpcClientConfig ,
257
263
}
258
264
259
265
impl MetaOpts {
@@ -331,6 +337,9 @@ impl MetaOpts {
331
337
table_stat_throuput_window_seconds_for_merge : 240 ,
332
338
periodic_scheduling_compaction_group_merge_interval_sec : 60 * 10 ,
333
339
license_key_path : None ,
340
+ compute_client_config : RpcClientConfig :: default ( ) ,
341
+ stream_client_config : RpcClientConfig :: default ( ) ,
342
+ frontend_client_config : RpcClientConfig :: default ( ) ,
334
343
}
335
344
}
336
345
}
@@ -343,8 +352,12 @@ impl MetaSrvEnv {
343
352
meta_store_impl : SqlMetaStore ,
344
353
) -> MetaResult < Self > {
345
354
let idle_manager = Arc :: new ( IdleManager :: new ( opts. max_idle_ms ) ) ;
346
- let stream_client_pool = Arc :: new ( StreamClientPool :: new ( 1 ) ) ; // typically no need for plural clients
347
- let frontend_client_pool = Arc :: new ( FrontendClientPool :: new ( 1 ) ) ;
355
+ let stream_client_pool =
356
+ Arc :: new ( StreamClientPool :: new ( 1 , opts. stream_client_config . clone ( ) ) ) ; // typically no need for plural clients
357
+ let frontend_client_pool = Arc :: new ( FrontendClientPool :: new (
358
+ 1 ,
359
+ opts. frontend_client_config . clone ( ) ,
360
+ ) ) ;
348
361
let event_log_manager = Arc :: new ( start_event_log_manager (
349
362
opts. event_log_enabled ,
350
363
opts. event_log_channel_max_size ,
0 commit comments