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 /scale subresource to CRD and replicas to various parts of CRD. #1633

Merged
merged 14 commits into from
Apr 6, 2020
Merged

Add /scale subresource to CRD and replicas to various parts of CRD. #1633

merged 14 commits into from
Apr 6, 2020

Conversation

ukclivecox
Copy link
Contributor

@ukclivecox ukclivecox commented Mar 29, 2020

Fixes #1592
Fixes #1598

  • Adds /scale subresource to CRD
  • Adds defaultReplicas to spec
    • Any predictor replicas not set will be set to spec.defaultReplicas
  • Add .spec.predictors[].componentSpecs[].replicas
    • Allows replicas to be set just for the deployment created from the componentSpec
  • Adds .spec.predictors[].svcOrchSpec.replicas
  • Changes predictor.replicas to pointer *int32
  • Add defaultReplicas to status
  • Updates Autoscaling example and adds as notebook test
  • Add new scale notebook to test replica settings and scaling via kubectl
  • Adds docs for above

Will allow for SeldonDeployment seldon-model for example,

kubectl scale --replicas=2 sdep/seldon-model

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

@seldondev
Copy link
Collaborator

Sun Mar 29 18:40:03 UTC 2020
The logs for [lint] [2] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/2.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=2

@seldondev
Copy link
Collaborator

Sun Mar 29 18:40:06 UTC 2020
The logs for [pr-build] [1] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/1.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=1

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Sun Mar 29 18:42:13 UTC 2020
The logs for [pr-build] [3] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/3.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=3

@seldondev
Copy link
Collaborator

Sun Mar 29 18:42:13 UTC 2020
The logs for [lint] [4] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/4.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=4

@seldondev
Copy link
Collaborator

Sun Mar 29 18:42:23 UTC 2020
The logs for [integration] [5] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/5.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=5

@ukclivecox
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Sun Mar 29 21:41:50 UTC 2020
The logs for [notebooks] [6] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/6.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=6

@ukclivecox ukclivecox changed the title WIP: Add /scale subresource to CRD Add /scale subresource to CRD and replicas to various parts of CRD. Mar 30, 2020
@seldondev
Copy link
Collaborator

Mon Mar 30 15:00:22 UTC 2020
The logs for [lint] [8] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/8.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=8

@seldondev
Copy link
Collaborator

Mon Mar 30 15:00:39 UTC 2020
The logs for [pr-build] [7] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/7.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=7

@ukclivecox
Copy link
Contributor Author

/test notebooks

@seldondev
Copy link
Collaborator

Mon Mar 30 15:02:23 UTC 2020
The logs for [notebooks] [9] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/9.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=9

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Mar 30 15:49:12 UTC 2020
The logs for [integration] [10] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/10.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=10

@ukclivecox
Copy link
Contributor Author

/test notebooks

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Mar 30 16:30:19 UTC 2020
The logs for [lint] [12] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/12.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=12

@seldondev
Copy link
Collaborator

Mon Mar 30 16:30:21 UTC 2020
The logs for [pr-build] [11] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/11.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=11

@seldondev
Copy link
Collaborator

Mon Mar 30 16:30:51 UTC 2020
The logs for [notebooks] [13] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/13.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=13

@seldondev
Copy link
Collaborator

Mon Mar 30 16:32:33 UTC 2020
The logs for [integration] [14] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/14.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=14

@ukclivecox
Copy link
Contributor Author

/test notebooks

@ukclivecox
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Mar 30 17:00:45 UTC 2020
The logs for [pr-build] [15] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/15.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=15

@seldondev
Copy link
Collaborator

Mon Mar 30 17:00:59 UTC 2020
The logs for [integration] [18] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/18.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=18

@seldondev
Copy link
Collaborator

Mon Mar 30 17:01:04 UTC 2020
The logs for [lint] [16] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/16.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=16

@seldondev
Copy link
Collaborator

Mon Mar 30 17:01:03 UTC 2020
The logs for [notebooks] [17] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/17.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=17

Copy link
Contributor

@adriangonz adriangonz left a comment

Choose a reason for hiding this comment

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

Looks pretty good!

operator/apis/machinelearning/v1/seldondeployment_types.go Outdated Show resolved Hide resolved
testing/scripts/metrics.yaml Show resolved Hide resolved
operator/apis/machinelearning/v1/seldondeployment_types.go Outdated Show resolved Hide resolved
doc/source/index.rst Show resolved Hide resolved
@seldondev
Copy link
Collaborator

seldondev commented Apr 6, 2020

@cliveseldon: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
notebooks 650ed50 link /test notebooks

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. I understand the commands that are listed here.

@seldondev
Copy link
Collaborator

Mon Apr 6 08:25:38 UTC 2020
The logs for [lint] [22] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/22.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=22

@seldondev
Copy link
Collaborator

Mon Apr 6 08:25:48 UTC 2020
The logs for [pr-build] [21] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/21.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=21

@adriangonz
Copy link
Contributor

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 09:13:32 UTC 2020
The logs for [integration] [23] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1633/23.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1633 --build=23

@adriangonz
Copy link
Contributor

/approve

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriangonz

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ukclivecox ukclivecox merged commit 5a5e5d9 into SeldonIO:master Apr 6, 2020
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.

Be able to scale SeldonDeployment objects using kubectl Add Scale SubResource to CRD
3 participants