Install 2 Consul's client agents (separated clusters) on the same host

I have 2 different HashiCorp Consul clusters (lets call them cluster A and cluster B) running on different hosts.

My Python app is running on a host which I already installed on 1 client agent configured to cluster A and I want my app will be able to send requests to cluster B also (somehow distinguish between the 2 agents)

Is it possible to install a second client agent (configured to cluster B) on that same host? and if so, how it can be done? Will I just need to change to a different port? Can’t find documentation for that use case.

Any possible solutions will be helpful, Thanks!

Hey everyone, any suggestions?

Just run the two agents on different ports. Each joining the cluster you want them to join. Make sure the node id are different.

1 Like