SWJTU-ZhangLei commented on code in PR #51825:
URL: https://github.com/apache/doris/pull/51825#discussion_r2153893906
##########
be/src/util/s3_util.cpp:
##########
@@ -307,14 +307,8 @@ std::shared_ptr<io::ObjStorageClient>
S3ClientFactory::_create_s3_client(
if (s3_conf.max_connections > 0) {
aws_config.maxConnections = s3_conf.max_connections;
} else {
-#ifdef BE_TEST
- // the S3Client may shared by many threads.
- // So need to set the number of connections large enough.
- aws_config.maxConnections =
config::doris_scanner_thread_pool_thread_num;
-#else
- aws_config.maxConnections =
-
ExecEnv::GetInstance()->scanner_scheduler()->remote_thread_pool_max_thread_num();
-#endif
+ // AWS SDK max concurrent tcp connections for a single http client to
use. Default 25.
+ aws_config.maxConnections =
std::max(config::doris_scanner_thread_pool_thread_num, 25);
Review Comment:
aws-sdk-cpp source code
https://github.com/aws/aws-sdk-cpp/blob/main/src/aws-cpp-sdk-core/include/aws/core/client/ClientConfiguration.h
/**
* Max concurrent tcp connections for a single http client to
use. Default 25.
*/
unsigned maxConnections = 25;
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]