Specify timeout for plugins of specific Kind.#3018
Specify timeout for plugins of specific Kind.#3018phuongatemc wants to merge 1 commit intovmware-tanzu:mainfrom
Conversation
Signed-off-by: Hoang, Phuong <phuong.hoang@emc.com>
|
This design proposes a solution that allows user to specify timeout during backup for all plugin executions on an object of specific resource types. |
|
@phuongatemc did you mean to delete design/backup-resources-order.md? |
Sorry but am I supposed to remove the design doc after it has been released? |
|
That's a great question! We are gonna keep it around. I actually am due to create some folder structure to house wip / completed. |
nrb
left a comment
There was a problem hiding this comment.
@phuongatemc I think we definitely need to have an overall timeout on backup operations and a way to pass them down to plugins, but I don't know about having individual timeouts per Kubernetes resource type.
It seems your use case is to run this against PVCs specifically? Is there anything else you'd want to run this against?
| - Enhance the BackupSpec to contain the map of resource type (Kind) to the timeout of executing all plugins being executed on an object of that resource type. | ||
| type BackupSpec struct { | ||
| ... | ||
| TotalPluginsTimeouts map[string]int `json:"totalPluginsTimeouts,omitempty"` //map of resource type to total plugins timeout (in milliseconds) |
There was a problem hiding this comment.
Can you give an example of what you envision the keys within this map to look like? Is it matching on a Kubernetes Kind?
If so, is that really only meaningful on BackupItemAction plugins, and not on any of the other plugin types, like ObjectStorage or VolumeSnapshotter?
There was a problem hiding this comment.
The key in this map is the Kubernetes Kind.
In theory, I think I can extend this design for all plugins, not just BackupItemAction. Not sure if I can have time to implement for all.
|
@phuongatemc Can this be closed in favor of #3355? |
Signed-off-by: Hoang, Phuong phuong.hoang@emc.com