File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1019,6 +1019,9 @@ message TS3Settings {
1019
1019
optional uint32 RequestTimeoutMs = 101 ;
1020
1020
optional uint32 HttpRequestTimeoutMs = 102 ;
1021
1021
optional uint32 ConnectionTimeoutMs = 103 ;
1022
+
1023
+ optional uint32 ExecutorThreadsCount = 104 [default = 32 ];
1024
+ optional uint32 MaxConnectionsCount = 105 [default = 32 ];
1022
1025
};
1023
1026
1024
1027
message TTaskCleaner {
Original file line number Diff line number Diff line change @@ -107,10 +107,10 @@ Aws::Client::ClientConfiguration TS3ExternalStorageConfig::ConfigFromSettings(co
107
107
if (settings.HasHttpRequestTimeoutMs ()) {
108
108
config.httpRequestTimeoutMs = settings.GetHttpRequestTimeoutMs ();
109
109
}
110
- config.executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(1 );
110
+ config.executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(settings. GetExecutorThreadsCount () );
111
111
config.enableTcpKeepAlive = true ;
112
112
// config.lowSpeedLimit = 0;
113
- config.maxConnections = 5 ;
113
+ config.maxConnections = settings. HasMaxConnectionsCount () ? settings. GetMaxConnectionsCount () : settings. GetExecutorThreadsCount () ;
114
114
config.caPath = " /etc/ssl/certs" ;
115
115
116
116
switch (settings.GetScheme ()) {
You can’t perform that action at this time.
0 commit comments