mastodon-on-aws icon indicating copy to clipboard operation
mastodon-on-aws copied to clipboard

Modify maxmemory policy to avoid Redis evicting Sidekiq data

Open andreaswittig opened this issue 3 years ago • 2 comments

Sidekiq complains about the Redis maxmemory policy and asks for a noeviction policy. Evaluate and implement.

andreaswittig avatar Nov 16 '22 20:11 andreaswittig

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.

nodomain avatar Dec 04 '22 08:12 nodomain

depends on https://github.com/cfn-modules/elasticache-redis/pull/12

michaelwittig avatar Dec 05 '22 13:12 michaelwittig