Re: Calculating requests per second, per IP address

2024-01-02 Thread Rejaine Monteiro
Hi all!! I appreciate everyone for the help. For now, I used the good old bash (awk, sort, uniq) to get the information I need, but I'll try later to analyze the other tools and tips you guys sent me! Thanks and a great 2024 to everyone. On Tue, Jan 2, 2024 at 12:24 AM jeremy ardley via nginx

Re: Calculating requests per second, per IP address

2024-01-01 Thread jeremy ardley via nginx
On 1/1/24 18:57, J Carter wrote: Other than log aggregators, writing a script (python, perl, bash) is likely the fastest approach. Consider sharing it if you do, I'm sure others will find it useful. -- An alternative option is to put haproxy as a front end to nginx. haproxy has very configurabl

Re: Calculating requests per second, per IP address

2024-01-01 Thread J Carter
Hello, On Fri, 29 Dec 2023 09:54:30 -0300 Rejaine Monteiro wrote: > Hi all, > > I´m running Nginx community edition and need to implement rate limiting > > There's plenty of guides out there on how to do this, but no guides on how > to get real values/stats from the access logs > > > What I

Re: Calculating requests per second, per IP address

2023-12-29 Thread Rejaine Monteiro
Thanks for the explanation I understand how Nginx works with limit_req, and what I'm looking for is precisely to find this "reasonable value" for each endpoint (testing the application side behavior is also important, but since there are multiple endpoints with hundreds of different functions, it

Re: Calculating requests per second, per IP address

2023-12-29 Thread Maxim Dounin
Hello! On Fri, Dec 29, 2023 at 09:54:30AM -0300, Rejaine Monteiro wrote: > Hi all, > > I´m running Nginx community edition and need to implement rate limiting > > There's plenty of guides out there on how to do this, but no guides on how > to get real values/stats from the access logs > > > W