-
Notifications
You must be signed in to change notification settings - Fork 23.6k
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
Document aof-disable-auto-gc in redis.conf #12249
Conversation
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, it is only used for testing at the moment, we does not have plans to expose it yet
Got it. Is there any downside for disabling AOF auto GC, aside from having to manage the storage space? This feature is very helpful to our log based CDC solution, so we'd like to know if we are missing anything, and whether this can be officially exposed. @enjoy-binbin Also IMHO even though this feature is not explicitly "exposed" in any document, it is accessible as a config directive in public releases, and users have the ability to enable/disable it through the config file. So if the feature is supposed to be experimental or for testing only, then it would be great to have a clear indication or mention regarding its experimental status, so that users would be aware that the feature might not be fully supported yet, and could potentially undergo changes or be removed in future releases. |
i don't think it has any drawbacks other than disk (and manifest file) growth. i see that in #9788 we explicitly said it was for testing purposes, but we didn't flag it with flag it with |
@oranagra maybe you should ping @chenyang8094 ? |
sorry, that's what i meant, but GH must have suggested you first and i didn't notice. |
@sonicloong In general, |
I don't think we want to build a more advanced mechanism around this now, so the question is if we should set a |
@oranagra I think it should be hidden, as it was created for testing purposes and may have sharp edges as a general-purpose feature. I agree with @chenyang8094 that it can have more value, but I suggest we consider separately the right way to expose this functionality to users. |
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.
@sonicloong please do this to hide the config
- createBoolConfig("aof-disable-auto-gc", NULL, MODIFIABLE_CONFIG, server.aof_disable_auto_gc, 0, NULL, updateAofAutoGCEnabled),
+ createBoolConfig("aof-disable-auto-gc", NULL, MODIFIABLE_CONFIG | HIDDEN_CONFIG, server.aof_disable_auto_gc, 0, NULL, updateAofAutoGCEnabled),
aof-disable-auto-gc was created for testing purposes, to check if certain AOF files were actually generated and if they were deletedcorrectly during testing. So hiding it, see redis#12249 for more discussion.
closing in favor of #12355 |
aof-disable-auto-gc was created for testing purposes, to check if certain AOF files were actually generated and if they were deletedcorrectly during testing. So hiding it, see #12249 for more discussion.
Thanks @chenyang8094 for the context and @enjoy-binbin for making the change. I was on a long break, so didn't get the chance to send a follow-up PR.
It would be great to provide a production-ready option for users to opt out of AOF auto GC in future releases. Looking forward to it. |
It appears that currently this configuration directive is not mentioned anywhere outside of the codebase, so documenting it in redis.conf would make it more visible to users.