consul-php-sdk
consul-php-sdk copied to clipboard
Possible to point URL at a cluster of servers?
I have a cluster of 3 Consul servers. How can I have my code point at a random server instead of specifying only one server?
Actually, you can not with the lib. But you can easy create a wrapper to do so.
I think the correct way to do this would be to run a consul agent (not a server) on the localhost and the agent will take care of communicating with the cluster.
I agree. And this is how consul is supposed to be used. That's why I'm closing this issue.