This module is a load-balancer, which resolve upstream domain name asynchronously. It will choose one ip from its buffer according to round-robin for each request.Its buffer has the latest IPs of the backend domain name. Each interval 1s, It will asynchronously resolve domain name.If resolve fails, the buffer retains the last successfully resolved IPs.
Syntax jdomain domain-name [port=number] [interval=number] [max_ips=number] [retry_off]
port=number -- backend's listening port. default is 80.
interval=number -- how many seconds to resolve domain name。default 1.
max_ips=number -- ip buffer size。default is 20.
retry_off -- if one ip fail, do not try next.
Download the module.
Questions/patches to wdaike<email@example.com>, Baidu Inc.