File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
influxdb3_clap_blocks/src
influxdb3/src/commands/serve Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ const NON_SENSITIVE_PARAMS: &[&str] = &[
96
96
"object-store-http2-only" ,
97
97
"object-store-http2-max-frame-size" ,
98
98
"object-store-max-retries" ,
99
+ "object-store-request-timeout" ,
99
100
"object-store-retry-timeout" ,
100
101
"object-store-tls-allow-insecure" ,
101
102
"object-store-tls-ca" ,
Original file line number Diff line number Diff line change @@ -657,6 +657,17 @@ macro_rules! object_store_config_inner {
657
657
) ]
658
658
pub http2_max_frame_size: Option <u32 >,
659
659
660
+ /// Set HTTP request timeout for object store.
661
+ #[ clap(
662
+ id = gen_name!( $prefix, "object-store-request-timeout" ) ,
663
+ long = gen_name!( $prefix, "object-store-request-timeout" ) ,
664
+ env = gen_env!( $prefix, "OBJECT_STORE_REQUEST_TIMEOUT" ) ,
665
+ value_parser = humantime:: parse_duration,
666
+ default_value = "30s" ,
667
+ action
668
+ ) ]
669
+ pub request_timeout: Duration ,
670
+
660
671
/// The maximum number of times to retry a request
661
672
///
662
673
/// Set to 0 to disable retries
@@ -752,6 +763,7 @@ macro_rules! object_store_config_inner {
752
763
google_service_account: Default :: default ( ) ,
753
764
object_store,
754
765
object_store_connection_limit: NonZeroUsize :: new( 16 ) . unwrap( ) ,
766
+ request_timeout: Duration :: from_secs( 30 ) ,
755
767
http2_only: Default :: default ( ) ,
756
768
http2_max_frame_size: Default :: default ( ) ,
757
769
max_retries: Default :: default ( ) ,
You can’t perform that action at this time.
0 commit comments