Skip to content

Instantly share code, notes, and snippets.

@iamabhishek-dubey
Last active May 31, 2022 17:13
Show Gist options
  • Save iamabhishek-dubey/fe08f98f313c57ddd930c96f669b7bcc to your computer and use it in GitHub Desktop.
Save iamabhishek-dubey/fe08f98f313c57ddd930c96f669b7bcc to your computer and use it in GitHub Desktop.
Config Option Value Description
maxmemory 70% of the system maxmemory should be 70 percent of the system so that it will not take all the resource of the server.
maxmemory-policy volatile-lru It adds a random key with an expiry time
loglevel notice Loglevel should be notice so that log will not take too much resource
timeout 300 There should be a timeout value as well in redis configuration which prevents redis from spending too much time on the connection. It closes the connection of the client if it is ideal for more than 300 seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment