Upgrade go-marathon to 15ea23e.
Our vendored copy contains a bug that causes unavailable Marathon nodes to never be marked as available again due to a misconstruction in the URL to the Marathon health check / ping endpoint used by go-marathon internally. A fix[1] has been published. [1]https://github.com/gambol99/go-marathon/pull/283
This commit is contained in:
parent
2e762e76f3
commit
219a6372b0
10 changed files with 126 additions and 72 deletions
2
vendor/github.com/gambol99/go-marathon/cluster.go
generated
vendored
2
vendor/github.com/gambol99/go-marathon/cluster.go
generated
vendored
|
@ -131,7 +131,7 @@ func (c *cluster) markDown(endpoint string) {
|
|||
func (c *cluster) healthCheckNode(node *member) {
|
||||
// step: wait for the node to become active ... we are assuming a /ping is enough here
|
||||
for {
|
||||
req, err := c.client.buildMarathonRequest("GET", node.endpoint, "/ping", nil)
|
||||
req, err := c.client.buildMarathonRequest("GET", node.endpoint, "ping", nil)
|
||||
if err == nil {
|
||||
res, err := c.client.Do(req)
|
||||
if err == nil && res.StatusCode == 200 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue