Node available


(mr_max) #1

I use php client

I have this error
[Elasticsearch\Common\Exceptions\NoNodesAvailableException]
No alive nodes found in your cluster

Why?


(Magnus Bäck) #2

Is the node you're connecting to in good shape? What's the cluster's health?


(mr_max) #3

Yes connecting, The problem was in my type contacts, when i delete this type, problem fixed.
Strange.


(mr_max) #4

may be it's bulk function i use array with 50 000 items.
It's possible?


(Magnus Bäck) #5

50k per bulk request is a lot. I suggest you dial it down. Try 5k or 10k per request.


(mr_max) #6

I have a 1 000 000 items, it be a long time.


(Magnus Bäck) #7

Yes, a bulk insert of 1M documents will probably take a few minutes. The point of bulk requests is to remove the overhead when making one request per document, but increasing the bulk size too much won't increase insertion performance since the per-request overhead will be insignificant. An excessive size could actually make things worse.


(system) #8