-
-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: add Redis configuration for improved memory management #3427
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
Merged
BYK
merged 5 commits into
getsentry:master
from
Hassanzadeh-sd:hassanzadeh-sd/add-redis-config
Nov 19, 2024
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2b221d5
add: redis volume and configs on compose file
Hassanzadeh-sd 69fe887
add: redis.conf and create redis directory
Hassanzadeh-sd 3211d9f
modify : redis.conf path
Hassanzadeh-sd 235f55e
Merge branch 'master' into hassanzadeh-sd/add-redis-config
BYK 6d33bdc
shfmt
BYK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # redis.conf | ||
|
|
||
| # The 'maxmemory' directive controls the maximum amount of memory Redis is allowed to use. | ||
| # Setting 'maxmemory 0' means there is no limit on memory usage, allowing Redis to use as much | ||
| # memory as the operating system allows. This is suitable for environments where memory | ||
| # constraints are not a concern. | ||
| # | ||
| # Alternatively, you can specify a limit, such as 'maxmemory 15gb', to restrict Redis to | ||
| # using a maximum of 15 gigabytes of memory. | ||
| # | ||
| # Example: | ||
| # maxmemory 0 # Unlimited memory usage | ||
| # maxmemory 15gb # Limit memory usage to 15 GB | ||
|
|
||
| maxmemory 0 | ||
|
Hassanzadeh-sd marked this conversation as resolved.
Outdated
|
||
|
|
||
| # maxmemory-policy allkeys-lru | ||
| # | ||
| # This setting determines how Redis evicts keys when it reaches the memory limit. | ||
| # 'allkeys-lru' evicts the least recently used keys from all keys stored in Redis, | ||
| # allowing frequently accessed data to remain in memory while older data is removed. | ||
| # | ||
| # Example: | ||
| # maxmemory-policy allkeys-lru # Use LRU eviction for all keys | ||
|
|
||
| maxmemory-policy allkeys-lru | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.