Skip to content

Commit a2356fc

Browse files
committed
Adjust backoff retry policy initial setting to 500ms
1 parent 1b0e8c5 commit a2356fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cloud/gcp/gcp_retry.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ Status GcpCloudOptions::GetClientConfiguration(CloudFileSystem* fs,
9898
options.set<gcs::IdempotencyPolicyOption>(
9999
gcs::AlwaysRetryIdempotencyPolicy().clone());
100100

101-
// Use exponential backoff with a 1ms initial delay, 1 minute maximum delay,
101+
// Use exponential backoff with a 500ms initial delay, 1 minute maximum delay,
102+
// GCS only allows one write per second per object
102103
options.set<gcs::BackoffPolicyOption>(
103-
gcs::ExponentialBackoffPolicy(std::chrono::milliseconds(1),
104+
gcs::ExponentialBackoffPolicy(std::chrono::milliseconds(500),
104105
std::chrono::minutes(1), 2.0)
105106
.clone());
106107

0 commit comments

Comments
 (0)