Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for a lazy refresh (#2184) #644

Merged
merged 1 commit into from
May 15, 2024
Merged

feat: add support for a lazy refresh (#2184) #644

merged 1 commit into from
May 15, 2024

Commits on May 15, 2024

  1. feat: add support for a lazy refresh (#2184)

    When clients run the Proxy in environments where the CPU may be
    throttled, the background connection info refresh operation can fail to
    complete, causing connection errors. This commit introduces an option
    for a lazy refresh. Connection info is retrieved on an as needed-basis
    and cached based on the associated certificate's expiration. No
    background goroutine runs, unlike the default refresh ahead cache.
    
     Enable it like so:
    
     ./alloydb-auth-proxy <INSTANCE_URI> --lazy-refresh
    
    A lazy refresh may result in increased latency (more requests will be
    subject to waiting for the refresh to complete), but gains in
    reliability.
    
    Fixes #625
    enocom committed May 15, 2024
    Configuration menu
    Copy the full SHA
    7c3cccf View commit details
    Browse the repository at this point in the history