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

Connection Error in the logs of supavisor #403

Open
jahnavisana2812 opened this issue Jul 22, 2024 · 1 comment
Open

Connection Error in the logs of supavisor #403

jahnavisana2812 opened this issue Jul 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jahnavisana2812
Copy link

I've set up Supavisor on my PostgreSQL cluster hosted on Kubernetes. The connection pool is functioning properly, and I can make connections. However, I keep seeing this error in the Supavisor logs:

06:26:32.388 project=tenant user=user region=local mode=transaction type=single [warning] ClientHandler: socket closed with reason {:shutdown, :terminate_received}

Can you help me understand why I keep seeing this error? Is there any misconfiguration on my part, and is there a way to stop this error from appearing?

@jahnavisana2812 jahnavisana2812 added the bug Something isn't working label Jul 22, 2024
@jumski
Copy link

jumski commented Feb 14, 2025

Hey @jahnavisana2812, I'm not a supavisor developer but working on problems with abrupt connection closures and pool saturation in my app.

Maybe my findings would be helpful for you:

{:shutdown, :terminate_received}

Usually denotes that the process has received a termination command and is following OTP’s structured, albeit sometimes hurried, shutdown sequence. While ideal in theory, this may still fall short in environments where resources must be reclaimed immediately.

{:shutdown, :socket_closed}

Typically signals that a socket has been fully shut, usually implying a hard close at the TCP level. This can inadvertently leave connection slots reserved if the process termination does not complete in a controlled manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants