# Setup Percona XtraDB Cluster with one node

**URL:** <https://forums.percona.com/t/setup-percona-xtradb-cluster-with-one-node/11119>\
**Category:** Percona XtraDB Cluster 5.x\
**Tags:** mysql, percona\
**Created:** [June 30, 2021, 6:13am UTC](https://forums.percona.com/t/setup-percona-xtradb-cluster-with-one-node/11119 "2021-06-30T06:13:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos1](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@Carlos1](https://forums.percona.com/u/Carlos1)\
**Post date:** [June 30, 2021, 6:13am UTC](https://forums.percona.com/t/setup-percona-xtradb-cluster-with-one-node/11119/1 "2021-06-30T06:13:32Z")

</div>

Hi all,

Is it possible to setup a percona xtradb cluster with just one node? If yes. Is there anything to consider before?

Hope you guys help me…

Thanks

---

<div class="post-metadata">

**Author:** ![joselluis7](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@joselluis7](https://forums.percona.com/u/joselluis7)\
**Post date:** [June 30, 2021, 12:47pm UTC](https://forums.percona.com/t/setup-percona-xtradb-cluster-with-one-node/11119/2 "2021-06-30T12:47:24Z")

</div>

Hello Buddy,

That’s a good question, I did it by editing /etc/my.cnf file.

Basically I removed lines that includes others directories.

running `show status like 'wsrep%';`

```auto
+--------------------------+----------------------+
| Variable_name | Value |
+--------------------------+----------------------+
| wsrep_cluster_conf_id | 18446744073709551615 |
| wsrep_cluster_size | 0 |
| wsrep_cluster_state_uuid | |
| wsrep_cluster_status | Disconnected |
| wsrep_connected | OFF |
| wsrep_local_bf_aborts | 0 |
| wsrep_local_index | 18446744073709551615 |
| wsrep_provider_name | |
| wsrep_provider_vendor | |
| wsrep_provider_version | |
| wsrep_ready | ON |
+--------------------------+----------------------+

```

I don’t know if it is the best way to do, Let me know guys if there is another way.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 30, 2021, 3:20pm UTC](https://forums.percona.com/t/setup-percona-xtradb-cluster-with-one-node/11119/3 "2021-06-30T15:20:46Z")

</div>

@Carlos,  
Yes, you can run a “cluster of 1” by simply bootstrapping that node. You always and only bootstrap the very first node of a PXC. So if you do this, then you have a cluster of 1.

My question is “why”? That’s not really a cluster, so why do you want only 1 node?
