antonputra / tutorials

DevOps Tutorials
https://youtube.com/antonputra
MIT License
3.2k stars 2.5k forks source link

Improved Redis config #358

Closed melroy89 closed 1 week ago

melroy89 commented 1 week ago

Me again. Here is an improved Redis config, which you most want to try with m7a.large or m7a.xlarge (or higher AWS instances). Increase io-threads when needed.

I'm actually using Valkey myself, but since it's a fork of Redis. This configuration should just work fine! I'm curious if it makes the difference!

Brief explanation:

Last but not least, I also try to use unixsocket to reduce the network overhead, but that depends on the stack.

melroy89 commented 1 week ago

You're welcome. I wanted to add that if you are testing KeyDB as well, then the IO threads option is called differently under KeyDB. When using KeyDB, use: server-threads 2
(or again, since any other higher number of threads depending on your AWS instance).