# Two Different Commands for Enabling Allocation?

**URL:** https://discuss.elastic.co/t/two-different-commands-for-enabling-allocation/45806
**Category:** Elasticsearch
**Created:** [March 30, 2016, 2:22pm UTC](https://discuss.elastic.co/t/two-different-commands-for-enabling-allocation/45806 "2016-03-30T14:22:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)
#### Post date: [March 30, 2016, 2:22pm UTC](https://discuss.elastic.co/t/two-different-commands-for-enabling-allocation/45806/1 "2016-03-30T14:22:42Z")

</div>

What is the difference between:

curl -XPUT "[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings)" -d'{ "persistent" : { "cluster.routing.allocation.enable" : "all" } }'

and:

curl -XPUT "http://$(hostname --ip-address):9200/\_settings" -d'{ "index.routing.allocation.disable\_allocation" : "false" }'

Enable: true or Disable:false??

Aren't those the same thing??

---

<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, 11:04pm UTC](https://discuss.elastic.co/t/two-different-commands-for-enabling-allocation/45806/2 "2017-07-05T23:04:03Z")

</div>


