So I have two machines that can communicate with each other over Network Sharing.
Internal IP's :
Machine 1 : 172.16.0.1
Machine 2 : 172.16.0.2
The following file contains the Lua Database I refer to : http://nginx-win.ecsds.eu/download/ngxLuaDB-1.1.zip
With the following limit_req and limit_conn module
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
I was planning on storing the $binary_remote_addr into the Lua database so that both servers share that information and can limit requests and connections to all servers rather than just themselves.
Example :
Machine 1: limit_conn addr 1; #This will limit the machine to accept 1 open connection only from the same ip
If you was to open a file or stream in a new tab on your browser Machine 2 : does not have a connection open by the same ip so it will accept the connection but if it could know / share what machine 1 is limiting / blocking it can serve the 503 (Service Temporarily Unavailable) status.
Has anyone done this before any advice or if this is possible ?