widdix / mastodon-on-aws

Host your own Mastodon instance on AWS
https://cloudonaut.io/mastodon-on-aws/
136 stars 27 forks source link

Modify maxmemory policy to avoid Redis evicting Sidekiq data #2

Open andreaswittig opened 1 year ago

andreaswittig commented 1 year ago

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

nodomain commented 1 year ago

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.

michaelwittig commented 1 year ago

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