So I have mod_proxy setup pointing at
ProxyPass / http://www.mydomain.com/
ProxyPassReverse / http://www.mydomain.com/
and www.mydomain.com
has 4 A records (ie DNS load balancing) will mod_proxy pick 1 ip from that list for all it's worker processes and expire on the ttl of the DNS record, or will each worker process pick its own IP from that list?
I'm setting up a proxy sitting in front of a web server that is using this DNS load balancing, and I don't want to have to hard-code their IP addresses into BalancerMember directives as then they can't add & remove IP addresses without changing the proxy too.
I don’t think mixing DNS load balancing & mod_proxy load balancing will help anything. The IP choice in DNS load balancing is independent of any Apache settings you have so your load balancer will be at the mercy of whatever DNS IP address comes up when it rolls the dice.
I would suggest that you really rethink this & instead do the following:
www0.mydomain.com
&www1.mydomain.com
and such.www0.mydomain.com
&www1.mydomain.com
to only deliver content to the IP of your load balancer.www.mydomain.com
and set the mod_proxy setup to utilizewww0.mydomain.com
&www1.mydomain.com
This is really the only way to truly use a real load balancing solution. Because honestly DNS load balancing is a sloppy mess that I have never seen work well in practice in my 20+ years of doing web & Unix work. Apache mod_proxy is a bit tricky to setup, but the setup works very well & gives you more future options than you might even use; very future proof & scalable.
Good luck!