consul-php-sdk icon indicating copy to clipboard operation
consul-php-sdk copied to clipboard

Possible to point URL at a cluster of servers?

Open ssenaria opened this issue 10 years ago • 3 comments

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?

ssenaria avatar Feb 16 '16 20:02 ssenaria

Actually, you can not with the lib. But you can easy create a wrapper to do so.

lyrixx avatar Feb 17 '16 10:02 lyrixx

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.

delamart avatar Feb 27 '19 22:02 delamart

I agree. And this is how consul is supposed to be used. That's why I'm closing this issue.

lyrixx avatar Feb 28 '19 09:02 lyrixx