mastodon-on-aws
mastodon-on-aws copied to clipboard
Modify maxmemory policy to avoid Redis evicting Sidekiq data
Sidekiq complains about the Redis maxmemory policy and asks for a noeviction policy. Evaluate and implement.
From my Mastodon Terraform project where I did the same some weeks ago, using the same architecture on AWS as you ;-)
resource "aws_elasticache_parameter_group" "redis" {
name = var.name
family = "redis6.x"
parameter {
name = "maxmemory-policy"
value = "noeviction"
}
}
And it stops complaining.
depends on https://github.com/cfn-modules/elasticache-redis/pull/12