On 10/15/20 2:08 PM, Aleksandar Lazic wrote:
Hi.

I though maybe the peers could help me when I yust add the client IP with the 
URL but I'm not sure if I can query the peers store in a efficient way.

The target is to know how much concurrent IP's request the a specific URL.

Could lua be a solution.

Hey Aleks,

I'm not sure Lua would be the right solution for your situation, counting stuff is tricky.

However, I think Redis has INCR, you you can store per URL counters and maybe (just maybe) use Lua action in HAProxy to write to Redis.

Obviously, you'd need to look out for performance, added latency etc, but it would be a start. You can then access Redis outside of the HAProxy context and observe the counters.

Just my 2c, hope it helps you (like you helped many people on this list)

Best regards,
--
Adis Nezirovic
Software Engineer
HAProxy Technologies - Powering your uptime!
375 Totten Pond Road, Suite 302 | Waltham, MA 02451, US
+1 (844) 222-4340 | https://www.haproxy.com

Reply via email to