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

Redis 8 Refresh of default configuration #12191

Open
madolson opened this issue May 16, 2023 · 3 comments
Open

Redis 8 Refresh of default configuration #12191

madolson opened this issue May 16, 2023 · 3 comments

Comments

@madolson
Copy link
Contributor

madolson commented May 16, 2023

I wanted to start this issue to collate all of the configurations which use very old default values, that we might consider changing. The immediate ones that come to mind:

replica-lazy-flush no -> yes
lazyfree-lazy-user-flush no ->yes

There are many problems with running flush synchronously. Even in single CPU environments, the thread managers should balance between the freeing and serving incoming requests.

We should probably also revisit all of the datastructure limits (set-max-listpack-entries for example), which were probably tuned in a world with CPUs from a decade ago.

@eduardobr
Copy link
Contributor

repl-backlog-size 1mb is too small in most cases, but at the same time I think the real fix would be to make it dynamic (rough example: set min and max instead, and let redis choose a value in this range over time)

@zuiderkwast
Copy link
Contributor

So let's collect suggestions of new defaults here?

@madolson
Copy link
Contributor Author

Going to copy @xuliang0317 comment here to close the other issue.

Now repl-backlog-size is still 1mb,For most scenarios, this value is too small.Network transmission and bandwidth performance have improved rapidly in more than ten years,Memory is getting cheaper and cheaper.
Although the impact is noted in the documentation, most Redis users will directly use the default configuration.In many scenarios, the traffic per second of a single node exceeds 1mb.Especially for businesses facing individual users.
I recommend at least updating the configuration to 10mb to improve the rationality of the current repl-backlog-size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

3 participants