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

Nginx Ingress To Not Timeout when backend takes time to respond #12019

Closed
hk250097 opened this issue Sep 26, 2024 · 4 comments
Closed

Nginx Ingress To Not Timeout when backend takes time to respond #12019

hk250097 opened this issue Sep 26, 2024 · 4 comments
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@hk250097
Copy link

hk250097 commented Sep 26, 2024

What happened:

Hey there,

When using Nginx Ingress in GCP, I'm experiencing a timeout issue with long response times, causing a 504 gateway timeout on the client side. I think NGINX using default 60 seconds timeout.
Error on the client side: 504 Gateway Timeout

What you expected to happen:
We want to set the timeout to 90 seconds and let NGINX not re try when backend takes longer duration.
Lets say backend takes more than 90 seconds, let NGINX not retry as backend may be down.
So we don't want NGINX to retry again instead return 504.
Is there a config to let Ingress-Nginx know to retry in specific use cases and not to re try in specific use cases.

NGINX retries for 3 times to backend. Which is causing additional request's.
We know the backend is down and not able to responsd. We don't want additional request's to backend.

@hk250097 hk250097 added the kind/bug Categorizes issue or PR as related to a bug. label Sep 26, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Sep 26, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@longwuyuan
Copy link
Contributor

/remove-kind bug
/triage needs-information

Can you answer the questions that are asked in a new bug report template.

@k8s-ci-robot k8s-ci-robot added triage/needs-information Indicates an issue needs more information in order to work on it. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. and removed kind/bug Categorizes issue or PR as related to a bug. labels Sep 27, 2024
@hk250097 hk250097 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
@hk250097
Copy link
Author

Got the information what's needed.

@Nomis742
Copy link

Got the information what's needed.

Can you tell us how you solved the problem? I am facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
Development

No branches or pull requests

4 participants