Merge pull request #68653 from ClickHouse/Avogar-patch-6

Increase connectTimeoutMs IMDS connection timeout to 50ms to avoid failures in CI
This commit is contained in:
Kruglov Pavel 2024-08-26 11:50:41 +00:00 committed by GitHub
commit 76493b31b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -787,7 +787,7 @@ S3CredentialsProviderChain::S3CredentialsProviderChain(
/// EC2MetadataService delay is in order of seconds so it only make sense to retry after a couple of seconds.
/// But the connection timeout should be small because there is the case when there is no IMDS at all,
/// like outside of the cloud, on your own machines.
aws_client_configuration.connectTimeoutMs = 10;
aws_client_configuration.connectTimeoutMs = 50;
aws_client_configuration.requestTimeoutMs = 1000;
aws_client_configuration.retryStrategy = std::make_shared<Aws::Client::DefaultRetryStrategy>(1, 1000);