Skip to content
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

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

jangie
Copy link
Contributor

@jangie jangie commented Aug 13, 2016

Initial implementation: Force both maxconn labels to be present to trigger behavior.

@jangie
Copy link
Contributor Author

jangie commented Aug 13, 2016

to address #612

@jangie jangie force-pushed the master branch 3 times, most recently from 0555693 to 5c21ee2 Compare August 14, 2016 02:19
@@ -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)
Copy link
Contributor Author

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.

Copy link
Member

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 ;)

@jangie jangie force-pushed the master branch 2 times, most recently from d641121 to 2232ad3 Compare August 14, 2016 04:55
@jangie jangie closed this Aug 14, 2016
@jangie jangie reopened this Aug 14, 2016
@jangie jangie force-pushed the master branch 3 times, most recently from 1d41c21 to 927eba5 Compare August 16, 2016 00:07
@jangie jangie changed the title Add ability for marathon provider to set maxconn values Add ability for marathon provider to set maxconn values, loadbalancer algorithm, and circuit breaker expression Aug 16, 2016
@jangie jangie closed this Aug 16, 2016
@jangie jangie reopened this Aug 16, 2016
@jangie jangie force-pushed the master branch 6 times, most recently from b7095a3 to d1ad1be Compare August 18, 2016 13:20
@emilevauge
Copy link
Member

Thanks a lot @jangie :)
LGTM 🎉

@jangie
Copy link
Contributor Author

jangie commented Aug 18, 2016

@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?

@jangie jangie force-pushed the master branch 3 times, most recently from 83f3523 to a12600e Compare August 22, 2016 13:48
@jangie jangie force-pushed the master branch 2 times, most recently from bf94660 to cc707cb Compare August 25, 2016 21:12
@jangie jangie closed this Aug 30, 2016
@jangie jangie reopened this Aug 30, 2016
@emilevauge
Copy link
Member

LGTM, but needs rebase :)

@jangie
Copy link
Contributor Author

jangie commented Sep 14, 2016

Rebased

@jangie
Copy link
Contributor Author

jangie commented Sep 14, 2016

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
@emilevauge
Copy link
Member

ping @containous/traefik

Copy link
Contributor

@vdemeester vdemeester left a 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, …)

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

Successfully merging this pull request may close these issues.

4 participants