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.

Thanks!

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

3 Likes

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

@dExecutioner

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:

2 Likes