Skip to content

Commit 1eade81

Browse files
Google APIscopybara-github
authored andcommitted
feat: Tune Secret Manager auto retry parameters
UNKNOWN removed from retryable errors per AIP-194. Added RESOURCE_EXHAUSTED with adjusted parameters for better performance with spikes of AccessSecretVersion requests at or near quota limits. PiperOrigin-RevId: 383886699
1 parent e2b7a98 commit 1eade81

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

google/cloud/secretmanager/v1/secretmanager_grpc_service_config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@
7070
],
7171
"timeout": "60s",
7272
"retryPolicy": {
73-
"initialBackoff": "1s",
73+
"maxAttempts": 5,
74+
"initialBackoff": "2s",
7475
"maxBackoff": "60s",
75-
"backoffMultiplier": 1.3,
76+
"backoffMultiplier": 2.0,
7677
"retryableStatusCodes": [
7778
"UNAVAILABLE",
78-
"UNKNOWN"
79+
"RESOURCE_EXHAUSTED"
7980
]
8081
}
8182
}

0 commit comments

Comments
 (0)