How do I configure Redis durability settings (noevict, appendonly) in ElastiCache?
Last updated: April 16, 2025
Context
When using Redis ElastiCache for critical operations like job handling, you may want to configure specific durability settings such as noeviction policy and append-only file persistence to ensure data reliability.
Answer
While Porter manages a default parameter group for your ElastiCache instance, you can set custom durability parameters by creating and attaching a secondary parameter group in AWS. Here's how to do it:
Access your AWS Console and navigate to the ElastiCache dashboard
Create a new parameter group with your desired settings:
maxmemory-policy: noevictappendonly: yesappendfsync: everysec
Attach this secondary parameter group to your ElastiCache instance alongside the Porter-managed parameter group
Important notes:
Do not modify the Porter-managed parameter group directly
These changes are managed through the AWS Console, not the Porter dashboard
No cluster restart is required when appending a secondary parameter group
Monitor your application behavior after applying changes
If issues occur, you can remove the secondary parameter group