@@ -199,6 +199,9 @@ pub struct Server {
199
199
/// Livetail port
200
200
pub grpc_port : u16 ,
201
201
202
+ /// Livetail channel capacity
203
+ pub livetail_channel_capacity : usize ,
204
+
202
205
/// Rows in Parquet Rowgroup
203
206
pub row_group_size : usize ,
204
207
@@ -257,6 +260,10 @@ impl FromArgMatches for Server {
257
260
. get_one :: < u16 > ( Self :: GRPC_PORT )
258
261
. cloned ( )
259
262
. expect ( "default for livetail port" ) ;
263
+ self . livetail_channel_capacity = m
264
+ . get_one :: < usize > ( Self :: LIVETAIL_CAPACITY )
265
+ . cloned ( )
266
+ . expect ( "default for livetail port" ) ;
260
267
// converts Gib to bytes before assigning
261
268
self . query_memory_pool_size = m
262
269
. get_one :: < u8 > ( Self :: QUERY_MEM_POOL_SIZE )
@@ -322,6 +329,7 @@ impl Server {
322
329
pub const OPENID_CLIENT_SECRET : & str = "oidc-client-secret" ;
323
330
pub const OPENID_ISSUER : & str = "oidc-issuer" ;
324
331
pub const GRPC_PORT : & str = "grpc-port" ;
332
+ pub const LIVETAIL_CAPACITY : & str = "livetail-capacity" ;
325
333
// todo : what should this flag be
326
334
pub const QUERY_MEM_POOL_SIZE : & str = "query-mempool-size" ;
327
335
pub const ROW_GROUP_SIZE : & str = "row-group-size" ;
@@ -475,6 +483,16 @@ impl Server {
475
483
. value_parser ( value_parser ! ( u16 ) )
476
484
. help ( "Set port for livetail arrow flight server" ) ,
477
485
)
486
+ . arg (
487
+ Arg :: new ( Self :: LIVETAIL_CAPACITY )
488
+ . long ( Self :: LIVETAIL_CAPACITY )
489
+ . env ( "P_LIVETAIL_CAPACITY" )
490
+ . value_name ( "NUMBER" )
491
+ . default_value ( "1000" )
492
+ . required ( false )
493
+ . value_parser ( value_parser ! ( usize ) )
494
+ . help ( "Set port for livetail arrow flight server" ) ,
495
+ )
478
496
. arg (
479
497
Arg :: new ( Self :: QUERY_MEM_POOL_SIZE )
480
498
. long ( Self :: QUERY_MEM_POOL_SIZE )
0 commit comments