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

Failed to connect to Redis #18

Open
kumarv-rohith opened this issue Nov 17, 2016 · 3 comments
Open

Failed to connect to Redis #18

kumarv-rohith opened this issue Nov 17, 2016 · 3 comments

Comments

@kumarv-rohith
Copy link

Hi,
I'm currently facing this issue even if connection exists,not for all transactions but only for few.
Please provide some solution, because of which i'm not able to use the app.

Any solution will be appreciated.

@JerryMSunny
Copy link

JerryMSunny commented Nov 19, 2016

Even I'm having this connection issue, basically in my application there is one running php process that connects to the postgres database in turn postgres database perform an insert or an update to the redis through fdw on every request given by the php process. And it will work for some odd 1000 connections after which postgres throws an exception "Failed to connect to Redis: ".
When I restart the php process or postgres server it starts to execute again normally for near to 1000 connections and run into having the same issue.
I started looking into the c code and found that there are three places where there is this error displayed and also found that it is in the function "redisBeginForeignModify" (out of these three places) that I'm getting this error(if it may help someone to trace it).
And I'm suspecting that this is due to the number of connections open by a single process and it is not releasing the temp file used to open the connection.
Am I on the right track and is there a way to safely disconnect the connections and release the temp file after every query? Let me know if any solution or where can I look for the issue to fix it.
Thanks in advance.

@adunstan
Copy link
Member

It might leak connections. Please provide a self-contained test.

@mkgrgis
Copy link

mkgrgis commented Feb 17, 2023

Ping @kumarv-rohith ?

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

4 participants