Can I run both nomad client and server on the same machine?

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.


It is strongly recommended not to operate a node as both client and server, although this is supported to simplify development and testing.


Thanks for your response. I figured that out and implemented, it’s running fine.


Pro Tip Idea: be sure to specify a different node_class to the client on the nomad server.

Also, do check up on reserving CPU, memory, etc (in the nomad agent config) on the server node so the actual server process does not get squeezed!!! :slight_smile: