-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Ab testing redone #9119
Ab testing redone #9119
Conversation
@@ -45,7 +45,10 @@ func (s routeStrategy) PrepareForCreate(obj runtime.Object) { | |||
route.Status = api.RouteStatus{} | |||
// Limit to kind/name | |||
// TODO: convert to LocalObjectReference | |||
route.Spec.To = kapi.ObjectReference{Kind: route.Spec.To.Kind, Name: route.Spec.To.Name} | |||
route.Spec.To = api.RouteTargetReference{Kind: route.Spec.To.Kind, Name: route.Spec.To.Name, Weight: 1} |
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.
This block is no longer necessary - you can remove it and the block below because we no longer have fields to strip.
mode http | ||
option redispatch | ||
option forwardfor | ||
{{ with $balanceAlgo := index $cfg.Annotations "haproxy.balance" }} |
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.
Namespace the annotation just like other existing k8s/openshift annotations, router.openshift.io/haproxy.balance?
All comments taken care of. Testcases still need to be added. Review please. DO NOT MERGE YET - some cosmetics still to go in. |
Will look, thanks |
45dc612
to
2adf06a
Compare
c32436e
to
2155506
Compare
@smarterclayton Any inputs here. Working on the cli in a separate PR. |
Cli for viewing or changing? If latter a quick proposal write up would be On Jun 8, 2016, at 5:39 PM, Rajat Chopra [email protected] wrote: @smarterclayton https://github.com/smarterclayton Any inputs here. — |
5003f24
to
234c89c
Compare
[test] |
@rajatchopra @smarterclayton @knobunc Looking at the PR looks like weights would be first class citizen of Routing for AB testing. I just wonder how this will scale for next requests to support AB testing based on HTTP headers and cookies? |
We should definitely discuss those use cases. On Sat, Jun 25, 2016 at 11:17 AM, Jorge Morales Pou <
|
} | ||
|
||
if len(route.Spec.AlternateBackends) > 3 { | ||
result = append(result, field.Required(specPath.Child("to"), "cannot specify more than 3 additional services")) |
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.
this is wrong, it should be specPath.Child("alternateBackends")
redo aborted [test] @smarterclayton The fixes suggested by you have been put in. The tests flake randomly still but they are unrelated. If you could mark this PR for merge if everything else is okay. Thanks. |
[test] so failures are unrelated to router changes? |
[test] |
[test] |
Evaluated for origin test up to 5a19e50 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5546/) |
LGTM [merge] |
Unrelated failures. Retry [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/5586/) (Image: devenv-rhel7_4488) |
[merge] once more |
Evaluated for origin merge up to 5a19e50 |
return false | ||
} | ||
|
||
func matchString(pattern, s string) bool { |
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.
In #9671 changing matchString to matchPattern in order to change default behavior to anchor on the beginning and end of the line. To avoid confusion with regexp.MatchString() the name was changed
@rajatchopra @smarterclayton @knobunc Where would be the best place to discuss those other use cases we have left that makes a better ab testing? |
Issue probably in github that lays out what we want to achieve and the use On Wed, Jul 20, 2016 at 5:16 AM, Jorge Morales Pou <[email protected]
|
Re-implementing A/B testing work with weights as an API field. Ref: #9070