mesosphere / marathon-lb

Marathon-lb is a service discovery & load balancing tool for DC/OS
Apache License 2.0
450 stars 300 forks source link

Follow standby redirects #594

Closed timcharper closed 6 years ago

timcharper commented 6 years ago

In Marathon 1.7.x, Marathon will be sending 302 redirect responses when requesting /v2/events from a non-leader. Marathon-lb needs to be updated to follow these redirects.

paambaati commented 6 years ago

@timcharper I can send a PR for this. Can you link me to a relevant Marathon PR or commit? I tried looking but I couldn't find any!

paambaati commented 6 years ago

@timcharper NVM, found it.

Original Marathon JIRA card → https://jira.mesosphere.com/projects/MARATHON/issues/MARATHON-7178

Marathon PR → https://github.com/mesosphere/marathon/pull/6211

paambaati commented 6 years ago

@timcharper Also, FYI, the code in your branch returns a 302, not a 301.

In Marathon 1.7.x, Marathon will be sending 301

timcharper commented 6 years ago

@paambaati Thanks for the clarification!