Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Allow LB to work for apps with IP per task #144

Merged
merged 2 commits into from
Apr 7, 2016

Conversation

robbrockbank
Copy link
Contributor

  • Fix up LB to use correct IP address and port. For IP-per-task, use actual task IP and port.

Fixes #139

I've added support for IP per task. There are currently no additional UTs here, but I have fixed up the existing ones.

Note that there is a marathon issue d2iq-archive/marathon#3636 that will prevent IP-per-tasks from working still, so this is only part of the overall fix required. Ideally it would be great if someone could get a fix in Marathon for this - I'm a little out of my depth to make that fix. Could you let me know if is likely to get fixed as it's blocking me. If not I can provide another PR that works around the missing data in the marathon-lb - but the fix is only useful in certain circumstances.

-  Fix up LB to use correct IP address and port.  For IP-per-task, use actual
   task IP and port.
@@ -1,3 +1,4 @@
.idea
templates/
__pycache__
*.pyc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit, but small whitespace error here (no newline at EOF).

@brndnmtthws
Copy link
Contributor

Looks great overall. We just need a test around the new function, and we're good to go.

@robbrockbank
Copy link
Contributor Author

@brndnmtthws I've updated the review with some UTs to cover all branches in that method.

What's the take on d2iq-archive/marathon#3636 ? Any chance someone could fix that - I'm afraid that one is a little harder for me to get my head around.

@brndnmtthws
Copy link
Contributor

I'm not sure about the Marathon issue at this point, but I'll check in with the Marathon team to see if we can get some resources on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marathon-LB Server Entries don't consider ip-per-container tasks
2 participants