# Elasticsearch.Net, search gets really slow when one of three nodes are shut down

**URL:** <https://discuss.elastic.co/t/elasticsearch-net-search-gets-really-slow-when-one-of-three-nodes-are-shut-down/281855>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [August 18, 2021, 3:52pm UTC](https://discuss.elastic.co/t/elasticsearch-net-search-gets-really-slow-when-one-of-three-nodes-are-shut-down/281855 "2021-08-18T15:52:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbooh](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@mbooh](https://discuss.elastic.co/u/mbooh)\
**Post date:** [August 18, 2021, 3:52pm UTC](https://discuss.elastic.co/t/elasticsearch-net-search-gets-really-slow-when-one-of-three-nodes-are-shut-down/281855/1 "2021-08-18T15:52:09Z")

</div>

Hi!

I have a three node cluster on a 7.11.1 Elastic and then I have a .net website doing searches against the index. Everything works just fine but when I shut down one node the search takes about 60 seconds. It feels like [Elasticsearch.Net](http://Elasticsearch.Net) is trying to reach the shut down node, gets a timeout after a minute and the sends the response.  
My .net code looks like this:

```auto
var nodeUrls = nodeUrl.Split(',');
var nodeUris = nodeUrls.Select(n => new Uri(n));

var nodes = nodeUris.Select(u => new Node(u));
var connectionPool = new StickyConnectionPool(nodes);

var settings = new ConnectionSettings(connectionPool)
    .DisableDirectStreaming()
    .BasicAuthentication(username, password);

var client = new CustomElasticClient(settings);

```

Can I set the timeout or configure in some way to keep the performance with one node down? Should I use a different type of ConnectionPool?  
All threes nodes are configured as master nodes.

Thanks!

/Kristoffer

---

<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:** [September 15, 2021, 3:52pm UTC](https://discuss.elastic.co/t/elasticsearch-net-search-gets-really-slow-when-one-of-three-nodes-are-shut-down/281855/2 "2021-09-15T15:52:33Z")

</div>

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