I have 8 verticle in my application. Each Verticle is on a separate thread. Each Verticle has an WebClient ( Vert.x HTTP client)
I am setting the MaxPoolSize to 10.
WebClientOptions webClientOptions = new WebClientOptions() .setMaxPoolSize(10)
However when I checked with
/usr/sbin/ss -o state established -tn | tail -n +2 | awk '{ print $4 }' | sort |uniq -c | sort -n
On a production host, I can see that there are more than 10 connections per IP:Port.
Question 1: Is MaxPoolSize global for the entire application or per verticle. So for X.X.X.X:Y can I created 10 connections or 80 from my application?
Question 2: When I send a request to a host that has more than one IP in its DNS, would the connection pool be per host, or per IP? For example gogo.com resolves to 2 IP addresses. Can I create 10 connections to gogo.com 20?