Closed rboyer closed 5 years ago
This would relate to https://github.com/mesos/mesos-go/issues/338
I like the proposed interface. Which specific failures would trigger calls to such an interface? "no such host"? "connection timeout"? something else?
https://github.com/mesos/mesos-go/pull/352 is marked as merged. Does it mean that this ticket has been solved?
Yes I believe this is resolved. Closing out. Please re-open if you feel that something here has been left unaddressed.
If you run a replicated mesos-master setup (say N=3) then the current state of how you inform the HTTP API client of the masters is:
httpcli.Endpoint
to save itThis works ok enough until the selection from (1) is not responsive. Then you have to cobble together some sort of much higher level round-robin over a list of mesos-master addresses.
It would be cool if the
httpcli.Client
could take one of the following:And then have it rotate through the options down wherever
c.url
is referenced when there's an error indicative of a dead or bad master.