@@ -196,6 +196,9 @@ pub struct Server {
196
196
/// Open AI access key
197
197
pub open_ai_key : Option < String > ,
198
198
199
+ /// Livetail port
200
+ pub livetail_port : u16 ,
201
+
199
202
/// Rows in Parquet Rowgroup
200
203
pub row_group_size : usize ,
201
204
@@ -250,6 +253,10 @@ impl FromArgMatches for Server {
250
253
. cloned ( )
251
254
. expect ( "default for send analytics" ) ;
252
255
self . open_ai_key = m. get_one :: < String > ( Self :: OPEN_AI_KEY ) . cloned ( ) ;
256
+ self . livetail_port = m
257
+ . get_one :: < u16 > ( Self :: LIVETAIL_PORT )
258
+ . cloned ( )
259
+ . expect ( "default for livetail port" ) ;
253
260
// converts Gib to bytes before assigning
254
261
self . query_memory_pool_size = m
255
262
. get_one :: < u8 > ( Self :: QUERY_MEM_POOL_SIZE )
@@ -314,6 +321,7 @@ impl Server {
314
321
pub const OPENID_CLIENT_ID : & str = "oidc-client" ;
315
322
pub const OPENID_CLIENT_SECRET : & str = "oidc-client-secret" ;
316
323
pub const OPENID_ISSUER : & str = "oidc-issuer" ;
324
+ pub const LIVETAIL_PORT : & str = "livetail-port" ;
317
325
// todo : what should this flag be
318
326
pub const QUERY_MEM_POOL_SIZE : & str = "query-mempool-size" ;
319
327
pub const ROW_GROUP_SIZE : & str = "row-group-size" ;
@@ -457,6 +465,16 @@ impl Server {
457
465
. value_parser ( validation:: url)
458
466
. help ( "Set host global domain address" ) ,
459
467
)
468
+ . arg (
469
+ Arg :: new ( Self :: LIVETAIL_PORT )
470
+ . long ( Self :: LIVETAIL_PORT )
471
+ . env ( "P_FLIGHT_PORT" )
472
+ . value_name ( "PORT" )
473
+ . default_value ( "8001" )
474
+ . required ( false )
475
+ . value_parser ( value_parser ! ( u16 ) )
476
+ . help ( "Set port for livetail arrow flight server" ) ,
477
+ )
460
478
. arg (
461
479
Arg :: new ( Self :: QUERY_MEM_POOL_SIZE )
462
480
. long ( Self :: QUERY_MEM_POOL_SIZE )
0 commit comments