i'm expecting to configure nginx to load balance the load among a changing bunch of backend servers and do not want to loose reactivity ( nor send a dns query per http connection ).
do you know how often the hostname is resolved ?
is this configurable ?
<side optional question>
do you know if this setup prevents cookie-based stickiness ( which i do not strictly require but would like to have if possible nevertheless ) ?
... actually i'm not even sure stickiness is even supported for fastcgi backends
the doc suggests each IP will be used in round-robin fashion. i'm assuming nginx grabs all the IPs in one query and does not rely on the dns itself to perform the round-robin.
i'm also interested if you know whether this can be weighted by specifying the same ip multiple times ( assuming the dns handles it )
thanks a lot for your help
please do not elaborate on how dangerous this is/might be or better setups or whatever different subject unless you know the answer to my question or possess helpful experience. i'm aware of alternatives, pros, cons...
i might be interested in alternative software providing they provide the above feature AND are event-driven or equally efficient. apache does not even come close (please do not debate). lighttpd only provides such a feature in an abandoned branch AFAIK. other less common fast implementations i know of usually do not do fastcgi.