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

Enable HASURA_GRAPHQL_PG_CONN_LIFETIME by default with a default of 1… #6191

Closed
wants to merge 1 commit into from

Conversation

tirumaraiselvan
Copy link
Contributor

@tirumaraiselvan tirumaraiselvan commented Nov 13, 2020

This is a cherry-pick (with resolved conflicts) of #6190 for testing

…20 sec

See: hasura/pg-client-hs#26

We're still experiencing segfaults in certain configurations from the
libpq shrinking approach. This should be very safe, but is also
inadequate in several ways:

- negotiating a new connection is quite heavyweight compared to
  allocating a 1mb buffer
- thundering herd issues (TODO maybe add some jitter here)
- memory is not reclaimed promptly; there is no good default here.

# Conflicts:
#	CHANGELOG.md
#	server/cabal.project
#	server/src-lib/Hasura/Server/Init.hs
@tirumaraiselvan tirumaraiselvan requested a review from a team as a code owner November 13, 2020 04:58
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.

1 participant