-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Still default status code when defining limit-req-status-code
#2250
Comments
Usually, I'm not a person who sends "any update on this?" comments, but this is killing us in production. So forgive me to be penetrant here 🙂 Any data I could provide for debugging? |
@akoenig I am sorry for the delay. I will take a look at this today. |
@aledbf No worries :) Thanks for investigating this problem. 👍 |
@akoenig how are you testing this? You need to trigger the tests against a large file. Please check https://forum.nginx.org/read.php?2,277820,277825#msg-277825 |
If you change the annotation to |
@aledbf Okay, I see. Yeah |
From the nginx docs:
|
Ah, I see. Thanks for the heads up! 🙂 – Now I receive a |
That's weird (the limits are agnostic to HTTP verbs) |
@akoenig I cannot reproduce your issue:
.....
* Trying 192.168.39.232...
* TCP_NODELAY set
* Connected to 192.168.39.232 (192.168.39.232) port 31321 (#0)
> POST / HTTP/1.1
> Host: foo.bar
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 429 Too Many Requests
< Server: nginx/1.13.9
< Date: Fri, 06 Apr 2018 17:41:09 GMT
< Content-Type: text/html
< Content-Length: 185
< Connection: keep-alive
* HTTP error before end of send, stop sending
<
<html>
<head><title>429 Too Many Requests</title></head>
<body bgcolor="white">
<center><h1>429 Too Many Requests</h1></center>
<hr><center>nginx/1.13.9</center>
</body>
</html>
..... |
Closing. Please reopen if you still have this issue (also send how to reproduce it) |
NGINX Ingress controller version:
0.12.0
Kubernetes version (use
kubectl version
):v1.8.6
Environment:
uname -a
):What happened:
When defining
limit-req-status-code: "429"
in the ConfigMap and deploying the DaemonSet afterwards, I still receive a503
status code when rate limiting kicks in.What you expected to happen:
The HTTP response status code should be
429
(in this case).How to reproduce it:
Take this ConfigMap ...
... deploy the DaemonSet and apply an Ingress resource with this annotation:
nginx.ingress.kubernetes.io/limit-connections: "1"
.Afterwards, use a tool like vegeta and perform a rate limit test:
The output will be:
The
Error Set
indicates that the configuration hasn't been applied.The text was updated successfully, but these errors were encountered: