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

Add a cached data source to protect databases from health check volume #13

Merged
merged 1 commit into from
Nov 12, 2020

Conversation

film42
Copy link
Owner

@film42 film42 commented Nov 12, 2020

I excluded stat replication and replication slots from the tests because
we're probably going to remove those soon anyways.

When we wired this up to haproxy in prod we saw some db conn spikes. Did not impact db load but was making some connection charts look strange. This change will make it so we only perform a real db check once a second. Obviously caching a health check is a strange concept, but our health-checks run every 2 seconds so I think this is a safe change.

@benschinn

I excluded stat replication and replication slots from the tests because
we're probably going to remove those soon anyways.
@film42 film42 merged commit f49aef3 into master Nov 12, 2020
@film42 film42 deleted the gt/share_results branch November 12, 2020 19:59
@film42 film42 mentioned this pull request Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants