-
Notifications
You must be signed in to change notification settings - Fork 133
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
Error executing query: context deadline exceeded when backend error #501
Comments
Add ability to set timeout on downstream separate from dial Fixes #501
Thanks for the report! This is actually a bit of an odd edge case that TBH we haven't run into yet. Generally when the downstream dies the socket goes down as well -- and in that case the query responds correctly. In this case if the socket is live but no response happens then the query is sent but a response never happens. In this case we'd basically need to enforce some timeout to trigger an error before the full request timeout. I have created #507 to add such an option -- but it'll require configuring a timeout for the response headers. I would recommend instead seeing if there is a way to get the TCP port to not be open when the service is down (not sure how you are doing that, maybe some LB?) |
Actually, after submitting that PR i noticed that there already is a |
Hi @jacksontj. I'm experiencing what seems a similar use-case: a downstream Prometheus server experienced some issues and it was accepting new connections but never returning any response. Promxy kept timing out at 30 seconds. I'd like to lower this timeout. How can I set that |
Nevermind, I found the option. I opened #524 to add it to the sample |
my promxy.yaml configuration:
my start command line:
myhost2
When the myhost2 vm service fails, but tcp port is open:
promxy get error: Error executing query: context deadline exceeded
But if port 80 of myhost2 is closed, promxy can directly ignore the data of myhost2. Is this a bug of promxy?
The text was updated successfully, but these errors were encountered: