Skip to content

[INC-263] Backoff mechanism for fetching projects in case of error #1633

Closed

Description

@jan-auer

With #1426 deployed in case of invalid project state (when it could not be parsed or fetched) we will reuse the old state up until the grace period is reached.

This does not stop the Relay to try and update the state in next refresh cycle again though. We must make sure that we have a back off for these retries so we won’t DDoS our own services with requests.

Activity

  1. added
    bug
    on Nov 24, 2022
  2. jan-auer commented on Nov 24, 2022

    @jan-auer
    MemberAuthor

    @jjbayer wrote:

    We have a backup mechanism, but it is only used if the upstream does not respond at all, not for invalid project configs:

    // If a single request succeeded we reset the backoff. We decided to
    // only backoff if we see that the project config endpoint is
    // completely down and did not answer a single request successfully.
    //
    // Otherwise we might refuse to fetch any project configs because of a
    // single, reproducible 500 we observed for a particular project.
    slf.backoff.reset();

  3. changed the title [-]Backoff mechanism for fetching projects in case of error[/-] [+][INC-263] Backoff mechanism for fetching projects in case of error[/+] on Dec 6, 2022
  4. self-assigned this
    on Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions