-
Notifications
You must be signed in to change notification settings - Fork 33
U6: Valkey tuning #7
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,7 +74,23 @@ services: | |
| image: valkey/valkey:8-alpine | ||
| ports: | ||
| - "6382:6379" | ||
| command: ["valkey-server", "--maxmemory", "256mb", "--maxmemory-policy", "volatile-lru", "--appendonly", "yes"] | ||
| # Aggressive cache mode: LRU, 1GB, no persist | ||
| command: | ||
| - valkey-server | ||
| - --maxmemory | ||
| - 1gb | ||
| - --maxmemory-policy | ||
| - allkeys-lru | ||
| - --save | ||
| - "" | ||
| - --appendonly | ||
| - "no" | ||
| - --tcp-backlog | ||
| - "2048" | ||
| - --timeout | ||
| - "0" | ||
| - --tcp-keepalive | ||
| - "60" | ||
| volumes: | ||
| - bcproxyai-redis:/data | ||
|
Comment on lines
+92
to
95
|
||
| healthcheck: | ||
|
|
||
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.
--tcp-backlog 2048may not take effect if the kernelnet.core.somaxconnis lower (Valkey will cap the effective backlog). If you rely on 2048 for connection spikes, consider also setting an appropriate sysctl for the container/host so the backlog setting is actually honored.