-
Notifications
You must be signed in to change notification settings - Fork 181
Disabled XFS rmapbt and reflink flags for reducing overhead #2562
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: gnana997 <[email protected]>
Hi @gnana997. Thanks for your PR. I'm waiting for a scylladb member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gnana997 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contribution. Changes are in good place, although API should be more generic. Title and description suggests two flags were disabled, although they are not present anywhere in the change.
@@ -70,6 +70,11 @@ spec: | |||
type: | |||
description: type is a desired filesystem type. | |||
type: string | |||
xfsFlags: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autogenerated changes should be part of separate commit - please check the contribution guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the changes from the yaml file. I will create a seperate pr once this pr get's merged.
Thanks!
Signed-off-by: gnana997 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash commits into one carrying implementation and create second one with autogenerated changes only. You can read more in contribution guide.
// Add default flags for XFS filesystem | ||
flags := fs.Flags | ||
if fs.Type == scyllav1alpha1.XFSFilesystem { | ||
flags = append(flags, "rmapbt=0", "reflink=0") | ||
} | ||
|
||
changed, err := disks.MakeFS(ctx, nsc.executor, device, blockSize, string(fs.Type), flags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure it's intended, how would i enable those flags via fs.Flags if I wanted to?
Pass along only those which are in the API, those two (rmapbt=0 and reflin=0) should be part of the examples, not implementation.
@@ -12,7 +12,7 @@ import ( | |||
"k8s.io/utils/exec" | |||
) | |||
|
|||
func MakeFS(ctx context.Context, executor exec.Interface, device string, blockSize int, fsType string) (bool, error) { | |||
func MakeFS(ctx context.Context, executor exec.Interface, device string, blockSize int, fsType string, xfsFlags []string) (bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are not xfs flags anymore
if fsType == "xfs" { | ||
for _, flag := range xfsFlags { | ||
args = append(args, "-m", flag) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't -m
be part of flags? Why this is only for xfs?
|
||
// flags contains filesystem-specific flags to be used during filesystem creation | ||
// +optional | ||
Flags []string `json:"flags,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API changes requires regenerating autogenerated code.
/ok-to-test |
@gnana997: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Description of your changes:
Added changes to support disabling XFS flags rmapbt=0 reflink=0 to reduce the metadata overhead as mentioned in ScyllaDB AMI
Which issue is resolved by this Pull Request:
Resolves #2353