# 1 Machine per Cluster

**URL:** <https://discuss.hashicorp.com/t/1-machine-per-cluster/18203>\
**Category:** Nomad\
**Created:** [November 28, 2020, 5:57pm UTC](https://discuss.hashicorp.com/t/1-machine-per-cluster/18203 "2020-11-28T17:57:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorstewart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/victorstewart/32/15167_2.png) [@victorstewart](https://discuss.hashicorp.com/u/victorstewart)\
**Post date:** [November 28, 2020, 5:57pm UTC](https://discuss.hashicorp.com/t/1-machine-per-cluster/18203/1 "2020-11-28T17:57:00Z")

</div>

hi so at launch, I’ll be running 3 bare metal machines, 1 machine per datacenter, spread across the globe (US West, US East, Europe).

is it possible to simply run a nomad cluster of 1 server and 1 client, and do so with both running on the same machine? thus one of these “mini-clusters” per datacenter.

as i scale i would of course transition to the recommended 3 nomad servers each on their own machines, without any clients, but at the beginning this is simply cost prohibitive… but I would still like to benefit from Nomad, and not have to manually configure and manage my machines and the binaries running on them.

---

<div class="post-metadata">

**Author:** ![Wolfsrudel](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/wolfsrudel/32/28465_2.png) [@Wolfsrudel](https://discuss.hashicorp.com/u/Wolfsrudel)\
**Post date:** [November 28, 2020, 9:19pm UTC](https://discuss.hashicorp.com/t/1-machine-per-cluster/18203/2 "2020-11-28T21:19:13Z")

</div>

```auto
server {
    enabled = true
    bootstrap_expect = 1
}

```

Just one thought: 1 node is not a cluster. 🙈  
But I got your point.  
It’s not recommended to run server and client on the same machine, but you can do it. Here is another discussion about that topic:

> [@Can I run both nomad client and server on the same machine?](https://discuss.hashicorp.com/t/can-i-run-both-nomad-client-and-server-on-the-same-machine/12571):
>
> I have three physical machines and I am trying to run one of the machine in both client and server mode. I know this is weird but the load is not critical so wanted to have same machine to run in both server and client role. The machines are powerful enough to do that. Thanks!

---

<div class="post-metadata">

**Author:** ![angrycub](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/angrycub/32/925_2.png) [@angrycub](https://discuss.hashicorp.com/u/angrycub)\
**Post date:** [November 30, 2020, 2:50pm UTC](https://discuss.hashicorp.com/t/1-machine-per-cluster/18203/3 "2020-11-30T14:50:44Z")

</div>

@victorstewart,

I definitely understand where the impulse to create this configuration comes from, so I wanted to share the biggest risks that you will encounter with this configuration.

1. You are not fault tolerant whatsoever, so while it will feel like Nomad and you will be able to use it like Nomad, you aren’t receiving the primary of the benefits of Nomad.

2. If you have to change the IP address of your node (or it could be changed in a restart—less of a concern in a bare-metal situation), you will either have to do peers.json recovery or wipe your state. The IP address is a component of the member ID in the raft data.

Servers are low intensity tasks and can run on rather small nodes if your cluster is not very active. Consider if there is any server capacity that you can scrounge. For a starting cluster, you could likely colocate a Nomad server process with another application—clients less so because of the workload aspect.

I’m excited to hear about you starting your Nomad journey and hope you find it to your liking.

Best,  
Charlie Voiselle  
**Product Education Engineer, Nomad**
