Skip to content

ws-manager: volume snapshot metric is not accurate for stops #10334

Closed
@jenting

Description

@jenting

Is your feature request related to a problem? Please describe

When implementing the #10195, we realized that the time to measure the VolumeSnapshotContent becomes Ready might not be accurate because we using the exponential back-off retry mechanism.

For example, the exponential back-off retry time period is around: 100ms, 150ms, 225ms, 337.5ms, ..., 40 secs, and 60 secs.
If we watch the VolumeSnapshotContent object, we observe that the VolumeSnapshotContent object becomes ready at about 45 seconds. However, the time metric of VolumeSnapshotContent would be recorded as 60 seconds because that's the next round the exponential back-off retry be triggered.

Describe the behaviour you'd like

If possible, we could change the exponential back-off mechanism's factor or implement the Kubernetes client Watch method to more accurately the time waiting for the VolumeSnapshotContent becomes Ready.

It would benefit the time on stopping the workspace as well as have more accurate metrics.

Describe alternatives you've considered

N/A

Additional context

#10195
#7901

Metadata

Metadata

Assignees

Labels

team: workspaceIssue belongs to the Workspace team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions