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

v1alpha3: Add suggestion CRD #1

Merged
merged 5 commits into from
Apr 28, 2019
Merged

Conversation

gaocegege
Copy link

No description provided.

johnugeorge and others added 4 commits April 23, 2019 16:22
* Adding initial v1alpha2 controller

* Adding logs

* Adding comments

* Adding template functions for experiment

* Adding error checks
Signed-off-by: Ce Gao <gaoce@caicloud.io>
Signed-off-by: Ce Gao <gaoce@caicloud.io>
@caicloud-bot
Copy link

@gaocegege: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@caicloud-bot caicloud-bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. caicloud-cla: yes Indicates the PR's author has not signed the Caicloud CLA. labels Apr 27, 2019
@gaocegege
Copy link
Author

/release-note-none

@caicloud-bot caicloud-bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Apr 27, 2019
@gaocegege
Copy link
Author

/approve
/lgtm

@caicloud-bot
Copy link

@gaocegege: you cannot LGTM your own PR.

In response to this:

/approve
/lgtm

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.

@caicloud-bot caicloud-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 27, 2019
Signed-off-by: Ce Gao <gaoce@caicloud.io>
@gaocegege
Copy link
Author

/cc @ddysher

@ddysher
Copy link
Member

ddysher commented Apr 28, 2019

/lgtm

@caicloud-bot caicloud-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 28, 2019
@caicloud-bot caicloud-bot merged commit 3e82c3d into caicloud:master Apr 28, 2019
@gaocegege gaocegege deleted the first branch April 28, 2019 07:42
@caicloud-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ddysher, gaocegege

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


func init() {
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
AddToSchemes = append(AddToSchemes, v1alpha2.SchemeBuilder.AddToScheme)
Copy link
Collaborator

Choose a reason for hiding this comment

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

experiment: v1alpha3
trial: v1alpha2 (?)
suggestion: v1alpha2 (?)

Copy link
Author

@gaocegege gaocegege May 7, 2019

Choose a reason for hiding this comment

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

API

  • trial v1alpha2
  • experiment v1alpha2
  • suggestion v1alpha2

GRPC API

  • suggestion v1alpha3

controller

  • trial v1alpha3
  • experiment v1alpha3
  • suggestion v1alpha3

// Total number of trials to run.
MaxTrialCount int `json:"maxTrialCount,omitempty"`
// Max completed trials to mark experiment as succeeded
MaxTrialCount *int `json:"maxTrialCount,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Name as MinTrialCount? Minimum trail count for success..
BTW, what is the benefit of pointer *int rather than int, which is changed in several places?

@@ -86,6 +90,9 @@ type ExperimentStatus struct {

// How many trials are currently pending.
TrialsPending int `json:"trialsPending,omitempty"`

// How many trials are currently running.
TrialsRunning int `json:"trialsRunning,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

And where do we record periodical metric?

Type SuggestionType `json:"type,omitempty"`

// Defines if the suggestion needs previous results.
NeedHistory bool `json:"needHistory,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

If NeedHistory == true, what does it mean for ES and HP? For HP, it means it needs trial final metrics (opposite: random search), while in ES, it needs periodical metrics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. caicloud-cla: yes Indicates the PR's author has not signed the Caicloud CLA. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants