Skip to content

Commit d9fd799

Browse files
committed
Better sniff url
1 parent 139dbbb commit d9fd799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def sniff_hosts(self):
173173
for c in self.connection_pool.connections + self.seed_connections:
174174
try:
175175
# use small timeout for the sniffing request, should be a fast api call
176-
_, headers, node_info = c.perform_request('GET', '/_nodes',
176+
_, headers, node_info = c.perform_request('GET', '/_nodes/_all/clear',
177177
timeout=self.sniff_timeout)
178178
node_info = self.deserializer.loads(node_info, headers.get('content-type'))
179179
break

0 commit comments

Comments
 (0)