A Lua
script to distribute GET
requests among 3 servers with respect to Range
header of GET
request.
- Set
content_length
variable to length of content (You can also set it tongx.req.get_headers()["Content-Length"]
). - Set
second_server
andthird_server
variables to other server addresses. - First server will be current server that Nginx is runnig on.
- Multirange
GET
requests are supported.