# How to use api cluster.putSettings?

**URL:** https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019
**Category:** Elasticsearch
**Created:** [August 26, 2016, 9:19am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019 "2016-08-26T09:19:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)
#### Post date: [August 26, 2016, 9:19am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/1 "2016-08-26T09:19:43Z")

</div>

Hi guys, does any know how to use the api of cluster.putSettings to put cluster settings?I have referenced the api docs,but it really confused me.

![](https://us1.discourse-cdn.com/elastic/original/2X/5/5a21f864c1242320302b82d1d73dfa15d6742bc6.jpg)

How can i summit data? which param should I use?

Thx

---

<div class="post-metadata">

### Author: ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)
#### Post date: [August 26, 2016, 10:16am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/2 "2016-08-26T10:16:39Z")

</div>

which language client is this for?

---

<div class="post-metadata">

### Author: ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)
#### Post date: [August 26, 2016, 10:29am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/3 "2016-08-26T10:29:29Z")

</div>

js,here is the link [https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference-2-1.html#api-cluster-putsettings-2-1](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference-2-1.html#api-cluster-putsettings-2-1)

---

<div class="post-metadata">

### Author: ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)
#### Post date: [August 26, 2016, 11:01am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/4 "2016-08-26T11:01:56Z")

</div>

one example would be

```auto
    client.cluster.putSettings({
      body: {
        transient: {
          threadpool: {
            bulk: {
              queue_size: -1
            }
          }
        }
      }
    }, some_callback);

```

---

<div class="post-metadata">

### Author: ![wq\_Huang](https://avatars.discourse-cdn.com/v4/letter/w/858c86/32.png) [@wq\_Huang](https://discuss.elastic.co/u/wq_Huang)
#### Post date: [August 26, 2016, 11:03am UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/5 "2016-08-26T11:03:28Z")

</div>

thx!

---

<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: [July 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/how-to-use-api-cluster-putsettings/59019/6 "2017-07-05T22:24:55Z")

</div>


