-
Notifications
You must be signed in to change notification settings - Fork 36
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
Added QAT configs with experimental flag. #442
base: main
Are you sure you want to change the base?
Added QAT configs with experimental flag. #442
Conversation
f92aff2
to
8e60795
Compare
microceph/ceph/config.go
Outdated
@@ -222,6 +233,10 @@ func setConfigItem(c types.Config) error { | |||
return err | |||
} | |||
|
|||
if config.Permission == ClusterConfigEXPRW { | |||
return fmt.Errorf("WARNING: set operation on experimental config (%s)", c.Key) |
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 would advise against doing this. The pattern if err != nil
is way too common in Go, and overloading errors for warnings seems like a footgun to me. Instead, I would simply log the warnings here instead of down below.
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.
It's a temporary thing, because we don't want people to run QAT on prod until we're sure about it.
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.
The problem with logging is that the end user will not know about it until they check the logs. An acceptable (rather better) alternative is to require --experimental
flag for such configs.
Signed-off-by: Utkarsh Bhatt <[email protected]>
Signed-off-by: Utkarsh Bhatt <[email protected]>
8e60795
to
704dfaf
Compare
Signed-off-by: utkarsh bhatt <[email protected]>
Description
Added cluster configs for QAT enablement
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Manual Testing
Contributor's Checklist
Please check that you have: