-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability for marathon provider to set maxconn values, loadbalancer algorithm, and circuit breaker expression #616
Conversation
to address #612 |
0555693
to
5c21ee2
Compare
@@ -79,7 +80,9 @@ func (p *BaseProvider) getConfiguration(defaultTemplateFile string, funcMap temp | |||
return nil, err | |||
} | |||
|
|||
if _, err := toml.Decode(buffer.String(), configuration); err != nil { | |||
var renderedTemplate = buffer.String() | |||
log.Debugf("Rendering results of %s:\n%s", defaultTemplateFile, renderedTemplate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is something that is desired, but it certainly helped me debug while coding this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once this PR is ready, we should comment that indeed ;)
d641121
to
2232ad3
Compare
1d41c21
to
927eba5
Compare
b7095a3
to
d1ad1be
Compare
Thanks a lot @jangie :) |
@emilevauge I've removed the log statement for now. I'll be taking a stab at adding similar functionality to the other providers. Is it also your opinion that the maxconn settings should be an all-or-nothing affair? I.e., that without extractorfunc, amount should do nothing, as well as vice versa? |
83f3523
to
a12600e
Compare
bf94660
to
cc707cb
Compare
LGTM, but needs rebase :) |
Rebased |
Rebased again. |
Initial implementation: Force both to be present to trigger behavior. add ability to see rendered template in debug add support for loadbalancer and circuit breaker specification add documentation for new configuration
ping @containous/traefik |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐮
I would think at some point we could refactor a bit the providers (some common stuff like get label, …)
Initial implementation: Force both maxconn labels to be present to trigger behavior.