Node available

I use php client

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

Why?

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

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

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

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

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

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.