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(sql): ability to override SqlHealthIndicator by dynamic config #3158

Merged
merged 2 commits into from
Sep 16, 2019

Conversation

asher
Copy link
Contributor

@asher asher commented Sep 16, 2019

  • SqlHealthActivator is designed to halt queue processing when sql
    persistence is in use and the connected database is in a read-only
    mode. This is desired behavior when running in a single writer
    environment, where write availability is impacted by a failover.
    This PR adds a dynamic configuration property,
    sql.overrideSpringHealthCheck that prevents Spring's Health
    Indicator going unhealthy when connected to a read-only database,
    allowing Orca to continue serving read-requests for task and pipeline
    executions.

- SqlHealthActivator is designed to halt queue processing when sql
persistence is in use and the connected database is in a read-only
mode. This is desired behavior when running in a single writer
environment, where write availability is impacted by a failover.
This PR adds a dynamic configuration property,
`sql.overrideSpringHealthCheck` that prevents Spring's Health
Indicator going unhealthy when connected to a read-only database,
allowing Orca to continue serving read-requests for task and pipeline
executions.
@asher asher requested a review from cfieber September 16, 2019 18:20
@asher asher merged commit c96a022 into spinnaker:master Sep 16, 2019
@asher asher deleted the sql branch September 16, 2019 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants