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

the overflowed connections of postgres_keepalive are still alive all time #61

Open
fengzhimengna opened this issue Jul 23, 2019 · 1 comment

Comments

@fengzhimengna
Copy link

fengzhimengna commented Jul 23, 2019

Hi, i have some trouble recently.
In our project, i set the ngx_postgresql below:
upstream database { postgres_server 127.0.0.1 dbname=oms user=postgres password=password; postgres_keepalive max=10 mode=single overflow=ignore; }
but, when the number of connections is greater than the max value 10, the overflow connections are still alive all time, they may not disconnect automatically, why?

@agentzh
Copy link
Contributor

agentzh commented Aug 1, 2019

@fengzhimengna It cannot be the case. This module uses the standard nginx upstream keep alive module. If that module has such bugs, the standard http proxy, http fastcgi, and etc will all fail to handle keep alive connections properly.

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

No branches or pull requests

2 participants