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 resource consumption in fs-backup and data mover doc #7604

Merged

Conversation

Lyndon-Li
Copy link
Contributor

@Lyndon-Li Lyndon-Li commented Apr 1, 2024

Add resource consumption in fs-backup and data mover doc. For issue #7391 and #7499

@Lyndon-Li Lyndon-Li added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Apr 1, 2024
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
@Lyndon-Li Lyndon-Li force-pushed the resource-consumption-in-doc branch from 72a8d43 to 49cd345 Compare April 1, 2024 10:29
@Lyndon-Li Lyndon-Li marked this pull request as ready for review April 1, 2024 10:30
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.88%. Comparing base (3465e8c) to head (49cd345).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7604   +/-   ##
=======================================
  Coverage   61.88%   61.88%           
=======================================
  Files         266      266           
  Lines       29456    29456           
=======================================
  Hits        18230    18230           
  Misses       9934     9934           
  Partials     1292     1292           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lyndon-Li Lyndon-Li requested a review from ywk253100 April 1, 2024 10:40
@@ -241,14 +241,11 @@ kubectl -n velero get datadownloads -l velero.io/restore-name=YOUR_RESTORE_NAME

## Limitations

- CSI and CSI snapshot support both file system volume mode and block volume mode. At present, Velero built-in data mover doesn't support
block mode volume or volume snapshot.
- CSI and CSI snapshot support both file system volume mode and block volume mode. At present, block mode is only supported for non-Windows platforms, because the block mode code invokes some system calls that are not present in the Windows platform.
Copy link
Member

@kaovilai kaovilai Apr 1, 2024

Choose a reason for hiding this comment

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

I think it is better to have inclusive language like we only support linux or UNIX-like platforms, because non-Windows could imply many other OSes block mode support.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This block is added by #7013, here in this PR, I just moved it since the first clarification and this one are contradictory.
Loop in @blackpiglet who had created #7013.

Copy link
Contributor

@blackpiglet blackpiglet Apr 2, 2024

Choose a reason for hiding this comment

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

It's tricky to describe the compatibility of the block mode support.

The error raised on the Windows system is:

# github.com/vmware-tanzu/velero/pkg/uploader/kopia
pkg/uploader/kopia/block_backup.go:41:31: undefined: syscall.Stat_t
pkg/uploader/kopia/block_restore.go:94:31: undefined: syscall.Stat_t

I checked the packages define Stat_t in https://github.com/golang/go/blob/master/src/syscall.
It seems inaccurate to say UNIX-like platforms support the block mode because the plan-9 and the Illumos packages don't have the Stat_t structure.
And JavaScript and WebAssembly system call also provides the Stat_t.

Maybe we can say UNIX-like platforms support the block mode, but there are some exceptions, then give this link https://github.com/golang/go/blob/master/src/syscall for user's reference.

@qiuming-best qiuming-best merged commit c7c59db into vmware-tanzu:main Apr 3, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants