Hi,
I am using balancer_by_lua and ngx.balancer.set_current_peer to dynamically proxy to different upstreams based on a previous lookup.
Does the keepalive connections configuration in the nginx upstream apply as a whole to the upstream block or to the distinct peers that are proxied to via set_current_peer.
Eg: I have 10 possible upstream peers and the keepalive config is set to 10. Will I have a total of 10 keepalive connections or 10 * 10 = 100 connections?
Also, is there a way to initiate the keepalive connections in advance rather than waiting for a request to create them? Something like a keepalive minimum