# How to config a cluster?

**URL:** https://discuss.elastic.co/t/how-to-config-a-cluster/3613
**Category:** Elasticsearch
**Created:** [December 1, 2010, 3:19am UTC](https://discuss.elastic.co/t/how-to-config-a-cluster/3613 "2010-12-01T03:19:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oicqemote](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@oicqemote](https://discuss.elastic.co/u/oicqemote)
#### Post date: [December 1, 2010, 3:19am UTC](https://discuss.elastic.co/t/how-to-config-a-cluster/3613/1 "2010-12-01T03:19:59Z")

</div>

I try to start elastic search on both PC-A(172.16.40.20) and PC-B(172.16.40.199) with default setting (v-0.13), and then check cluster status, only show 1 node with yellow flag.

how can I config it? and I try to change the cluster name in elasticsearch.yml

cluster:  
name:mycluster

and restart again, the cluster name still be "elasticsearch"

---

<div class="post-metadata">

### Author: ![oicqemote](https://avatars.discourse-cdn.com/v4/letter/o/4da419/32.png) [@oicqemote](https://discuss.elastic.co/u/oicqemote)
#### Post date: [December 2, 2010, 1:32am UTC](https://discuss.elastic.co/t/how-to-config-a-cluster/3613/2 "2010-12-02T01:32:47Z")

</div>

#1 was solved, add below in yml

discovery.zen.ping.unicast:  
hosts: ["172.16.40.20:9300","172.16.101.52:9300"]

#2 is not solved.

---

<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 6, 2017, 4:15am UTC](https://discuss.elastic.co/t/how-to-config-a-cluster/3613/3 "2017-07-06T04:15:55Z")

</div>


