# Node death on load

**URL:** <https://discuss.elastic.co/t/node-death-on-load/167418>\
**Category:** Elasticsearch\
**Created:** [February 7, 2019, 10:14am UTC](https://discuss.elastic.co/t/node-death-on-load/167418 "2019-02-07T10:14:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philv](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@philv](https://discuss.elastic.co/u/philv)\
**Post date:** [February 7, 2019, 10:14am UTC](https://discuss.elastic.co/t/node-death-on-load/167418/1 "2019-02-07T10:14:25Z")

</div>

I have a small 3-node cluster, I try loading 180 million documents to is using the Java TransportClient and the load I send the documents to always dies. The ES process ends. All I can see in the logs is a lot of GC time percentage wise. My hypothesis is that this one node is doing all the routing and I was wondering whether I have to set any other settings to allow the client itself to route between different nodes during a load. I am using the BulkLoader and this is how I configure a TransportClient:

```
  public static Client getExternalClient(String ip) throws AnException {
    InetAddress iaddress;
    try {
        iaddress = InetAddress.getByName(ip);
    } catch (UnknownHostException e) {
        throw new AnException("Cannot get a Client to ES cluster, perhaps the host name / IP address is incorrect", e);
    }

    return new PreBuiltTransportClient(getSettingsForExternalClient())
            .addTransportAddress(new TransportAddress(iaddress, 9300));

}

public static Settings getSettingsForExternalClient() {
    Settings.Builder b = Settings.builder()
            .put("cluster.name", Constants.getClusterName())
            .put("client.transport.nodes_sampler_interval", "30s")
            .put("client.transport.ping_timeout", "30s");
    return b.build();
}

```

I call getExternalClient( ip)  
Where ip is the ES node that always dies.

I'd noticed here [https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/transport-client.html](https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/transport-client.html) that setting:

.put("client.transport.sniff", true)

seems like it might be the thing to do, but I thought I'd check in here and make sure I am not missing anything.

Cheers,  
Phil

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 7, 2019, 10:14am UTC](https://discuss.elastic.co/t/node-death-on-load/167418/2 "2019-03-07T10:14:29Z")

</div>

Closed on March 7, 2019, 10:14am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
