-
Notifications
You must be signed in to change notification settings - Fork 725
Closed
Description
This has been mentioned before here and there..but im certain this is still a bug or connections arent pooled correctly?
Im doing the following: (it indexes 6.000.000 docs...one by one..(dont wanna use bulk imports..so lets ignore this topic for a second)
I'm even waiting for an index to be complete to call the next one...still at around 16.000 entries...i always get the no more living connections error.
I tried with keepalive: true/false etc. but it seems its a connection pooling issue no?
iprange = array of item
esearch = Elasticsearch client.
function doItem(i){
process.stdout.write("Importing item: " + i + "\r");
var doc = {};
doc.index = "geoip";
doc.type = "location";
doc.body = iprange[i];
esearch.index(doc, function (err, resp) {
if(err)
trace.info(err);
i++;
if(i < len) {
doItem(i);
}
});
}
doItem(1);
amir-rahnama, JrSchild, genintho, oney, theredpea and 17 moreamir-rahnama, thalesfsp, flaviodelbianco and AmeerSalahaldeen
Metadata
Metadata
Assignees
Labels
No labels