Skip to content

Commit

Permalink
use only thread for async s3 interaction (ydb-platform#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmorozov333 authored and vporyadke committed Feb 8, 2024
1 parent cec121d commit a523fca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ydb/core/wrappers/s3_storage_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/stream/PreallocatedStreamBuf.h>
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/stream/ResponseStream.h>
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/Aws.h>
#include <contrib/libs/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/utils/threading/Executor.h>

#include <contrib/libs/curl/include/curl/curl.h>
#include <ydb/library/actors/core/actorsystem.h>
#include <ydb/library/actors/core/log.h>
Expand Down Expand Up @@ -105,6 +107,7 @@ Aws::Client::ClientConfiguration TS3ExternalStorageConfig::ConfigFromSettings(co
if (settings.HasHttpRequestTimeoutMs()) {
config.httpRequestTimeoutMs = settings.GetHttpRequestTimeoutMs();
}
config.executor = std::make_shared<Aws::Utils::Threading::PooledThreadExecutor>(1);
config.enableTcpKeepAlive = true;
// config.lowSpeedLimit = 0;
config.maxConnections = 5;
Expand Down

0 comments on commit a523fca

Please sign in to comment.