How often do python queries perform DNS queries

We use Locust to load api services load balancing elastic load. I came across this article regarding load balancing and automatic scaling that we are testing.

Locust uses python requests that urllib3 uses, so my question is, do python requests execute a dns request for each connection, and if not, is it configured?

+4
source share
1 answer

Locust uses python queries that use urllib3 , which uses socket.getaddrinfo , which has DNS caching disabled according to this SO stream (given that your test computer is running linux).

+1
source

Source: https://habr.com/ru/post/1270526/


All Articles