Skip to content

Conversation

@pshankinclarke
Copy link
Contributor

✍️ Description

This responds to "Enable memory-optimized settings for small-scale deployments" in discussion #3446.

I reserve 25% of container's RAM and use 75% for Valkey (see ElastiCache memory management) by setting maxmemory in valkey.conf (see memory allocation).

I also set cache defaults tuned for small deployments (see https://valkey.io/topics/lru-cache/):

  • maxmemory-policy allkeys-lru
  • maxmemory samples 10

🔗 Related PR / Issue

Link: #
discussion #3446

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@pshankinclarke pshankinclarke requested a review from a team as a code owner December 2, 2025 17:34
@github-actions github-actions bot added feature update script A change that updates a script labels Dec 2, 2025
@michelroegl-brunner michelroegl-brunner merged commit 6944797 into community-scripts:main Dec 2, 2025
2 checks passed
@pshankinclarke pshankinclarke deleted the valkey-mem branch December 2, 2025 21:35
Lorondos pushed a commit to Lorondos/ProxmoxVE that referenced this pull request Dec 2, 2025
probers1 pushed a commit to probers1/ProxmoxVE that referenced this pull request Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature update script A change that updates a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants