Home \ HAproxy \ Load balancing and HAproxy Usage tracker

 
and track changes of Server IP, Time & your Usage Rate Status



Time: 2021-04-22 13:51:09
App Server used:2 (192.168.1.115)
Reqs/10sec:2 Dynamic | 2 ALL reqs
Your IP:34.204.201.220
YOUR Usage Rate status:
  •  Normal user (< 5)
  •  Heavy user (5-6)
  •  Abuser (7-8)
  •  Potential DDOS (9-10)
  •  Blacklisted demo (10+)
  •  Not-a-demo: Jailed User (20+)

as No. Requests per last 10sec


How this works with HAproxy



Quick description

... would be that every time you RELOAD this page HAproxy calls one of the backend servers which returns the result.

For this particular demo we configured it as a "pure" load balancer that is using 2+ web servers in the background.
It calls them by round-robin scheduling algorithm where each process is assigned a fixed time slot in a cyclic way. It is simple and starvation-free as all processes get fair share of CPU


But there is much more going on here

  • HAproxy is constantly MONITORING status of background servers. If a server does not respond to a "health check" HAproxy will exclude it until becomes available again.
  • Then as a LOAD BALANCER it selects a server that is available and is next in line to take on the workload serving this page. URL stays exactly the same, but the BACK_END server taking the workload changes every time.
  • It tracks your USAGE RATE (currently configured as No. of requests per 10 secs) and can act proactively (i.e. refusing the user in case of too many requests) if configured so.
  • HAproxy also provides SSL Termination for DOMAIN (cloud-demos.fortnitecover.com) so a domain cert is in one place and not on every backend server that is serving requests.

Served by: 192.168.1.115

If you are interested in our services, please visit Klik MALL.com for more information.

Klik MALL Logo