Welcome! Log In Create A New Profile

Advanced

NGINX limit_req tornado web problems

Antonio Pintus
July 13, 2011 06:04AM
Hi all,

I'm trying to use the NGINX limit_req for my app APIs which has 1 NGINX
+ 4 app. server frontends.

My conf is like the following:

http{
....
limit_req_zone $binary_remote_addr zone=data_zone:10m rate=2r/s;

....

server{

....
location ^~ /data/new/ {
limit_req zone=data_zone burst=5 nodelay;
}
....

But it doesn't work, in fact I'm able to call my API /data/new several
times per second with success...and it isn't a good thing :)
Am I missing something?

Thanks in advance.

Best,

Antonio


--


Antonio Pintus

Technologist
ICT group
CRS4, Center for Advanced Studies, Research and Development in Sardinia

e-mail: pintux@crs4.it
Phone: +39 0709250268
Skype: pintuxskype

CRS4 Home: http://www.crs4.it

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX limit_req tornado web problems

Antonio Pintus July 13, 2011 06:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready