What is the correct way to use elasticsearch-py in multiprocessing script? Should I create a new client object before start processes and use that object or should I create a new object inside each of the processes. The 2nd one gives me an an error with connection issues from elasticsearch
Thanks Kiran
The recommended way is to create a unique client object and you can increase the number of simultaneous thread using the
maxsize
(10 by default).es = Elasticsearch( "host1", maxsize=25)
Source