Sharing rate limiting data between multiple nginx LB’s

I have multiple nginx machines running and proxy LB through a round
robin
DNS mechanism.

I do rate limiting as follows

limit_req_zone $binary_remote_addr zone=pw:30m rate=20r/m;

    location / {

                limit_req zone=pw burst=5 nodelay;

But this is per machine. Can this data be shared between the load
balancers
so that rate limiting is global and I can scale out.

-Quintin

Correction:

I have multiple nginx machines running proxy and LB’s through a round
robin
DNS mechanism.

Can someone help please…
-Quintin

Hi,

Bumping up an old thread. Can someone please help me with this?

-Quintin

Hello!

On Tue, Feb 28, 2012 at 06:05:51PM +0530, Quintin P. wrote:

Hi,

Bumping up an old thread. Can someone please help me with this?

There is no good solution. Simpliest one is to just use
per-frontend limits.

Maxim D.

I have multiple nginx machines running and proxy LB through a round robin
But this is per machine. Can this data be shared between the load
balancers so that rate limiting is global and I can scale out.

-Quintin

Thanks Maxim.