-
Notifications
You must be signed in to change notification settings - Fork 831
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 support to add ambassador circuit-breaker in seldon deployment #1661
Add support to add ambassador circuit-breaker in seldon deployment #1661
Conversation
Hi @anggao. Thanks for your PR. I'm waiting for a SeldonIO member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/cc @axsaucedo @cliveseldon |
Sat Apr 4 11:17:42 UTC 2020 impatient try |
Sat Apr 4 11:17:50 UTC 2020 impatient try |
/test integration |
Thanks @anggao! Looks awesome! |
Sat Apr 4 11:22:10 UTC 2020 impatient try |
@anggao all looks good! Would you be able to add a notebook example under the |
@axsaucedo sure will do, will also update the doc. |
@axsaucedo I added example please review again. |
Sun Apr 12 16:55:59 UTC 2020 impatient try |
Sun Apr 12 16:56:03 UTC 2020 impatient try |
@anggao great! Thank you for adding the example, I was thinking perhaps we could show the circuitbreaker in action in the notebook. For that basically the example maybe you coul actually set the annotations to:
Then we could use a model such as:
With this we could now show the result from two concurrent commands using something like
Would this be something you could do? Conscious it may take time, if you can't let me know and I can try to add further changes, just thinking if we add an example it would be good to show how it's enforced. Alternatively actually, we could just add in the docs a reference to the Ambassador documentation where it specifies exactly what each of the ambassador annotations do - that way we'd ensure it's up to date. |
@axsaucedo Yeah good point, in order to test this we need to make sure Ambassador is deployed as the ingress, and make sure the request go through it. I am not familiar how the python SeldonClient works, would be great if you take this over and improve the doc later, thanks! |
@anggao no worries, I added a simplified version now, perhaps we can use that? https://github.com/axsaucedo/seldon-core/blob/ambassador-circuit-breakers-example/examples/ambassador/circuit_breakers/ambassador_circuit_breakers.ipynb One thing is that it seems in this example, the circuit breaker wasn't triggered, as both requests seem to execute as expected. The service does seem to have the ambassador annotations below but don't seem to be enforced. Did they work when you ran them?
|
@axsaucedo can you change the command to something like below, and see whether it works ?
This will run curl command 200 times with max 10 jobs in parallel. |
@axsaucedo Any updates on this, have you tried the command above ? |
@anggao I have just tried it today, it all looks good! I will merge this and will update the notebook to use the one provided above |
/test integration |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: axsaucedo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Mon Apr 27 13:02:08 UTC 2020 impatient try |
Mon Apr 27 14:34:09 UTC 2020 impatient try |
Mon Apr 27 14:34:11 UTC 2020 impatient try |
@axsaucedo great, thanks! |
Trying to fix #1556
With this PR, users will be able to add ambassador circuit breakers from model deployment annotations.