Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
feat: Tune Secret Manager auto retry parameters (#144)
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

Source-Link: googleapis/googleapis@1eade81

Source-Link: googleapis/googleapis-gen@090b0f7
  • Loading branch information
gcf-owl-bot[bot] committed Jul 9, 2021
1 parent 47cdda9 commit 494f3f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Expand Up @@ -919,11 +919,12 @@ async def access_secret_version(
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.access_secret_version,
default_retry=retries.Retry(
initial=1.0,
initial=2.0,
maximum=60.0,
multiplier=1.3,
multiplier=2.0,
predicate=retries.if_exception_type(
core_exceptions.ServiceUnavailable, core_exceptions.Unknown,
core_exceptions.ResourceExhausted,
core_exceptions.ServiceUnavailable,
),
deadline=60.0,
),
Expand Down
Expand Up @@ -187,11 +187,12 @@ def _prep_wrapped_messages(self, client_info):
self.access_secret_version: gapic_v1.method.wrap_method(
self.access_secret_version,
default_retry=retries.Retry(
initial=1.0,
initial=2.0,
maximum=60.0,
multiplier=1.3,
multiplier=2.0,
predicate=retries.if_exception_type(
core_exceptions.ServiceUnavailable, core_exceptions.Unknown,
core_exceptions.ResourceExhausted,
core_exceptions.ServiceUnavailable,
),
deadline=60.0,
),
Expand Down

0 comments on commit 494f3f6

Please sign in to comment.