Skip to content

Save Suggestion state in persistent volume #1250

@andreyvelich

Description

@andreyvelich

/kind feature

To continue idea proposed here: #1062.
We would like to attach persistent volume to every deployed suggestion to save suggestion state after corresponding pod is deleted.
To implement this we should follow these steps:

  1. Extend ResumePolicyType with the new type. My idea, name it VolumeSource, any other ideas?

  2. Add new Storage Class YAML to Katib deployed manifests. I am not sure what should be the default provisioner for us, since k8s doesn't support dynamic volume provisioning for local storage (https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/#limitations-of-ga).
    We can be specific to GKE and use Persistent Disks (https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd). Or use 3rd party local path provisioner (https://github.com/rancher/local-path-provisioner), this require additional controller.
    What do you think ?

  3. Implement new logic to the controller:

  • Create PVC when user submits Experiment.
  • Attach PVC to suggestion deployment.
  • Delete suggestion resources when Experiment is succeeded.
  • Restore suggestion resources when Experiment is resuming.
  1. Extend katib-config with the new parameters for suggestion PVC.

What do you think @gaocegege @johnugeorge ?

/cc @sperlingxx @c-bata @jlewi
/priority p0

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions