oelachqar / system800

0 stars 0 forks source link

[celery][prod] configure redis storage and retention policy #15

Open oelachqar opened 5 years ago

oelachqar commented 5 years ago

Redis is a memory key value store, which means if the memory is full or if the machine reboots we loose our data.

To mitigate this we need to:

  1. Configure disk backups
  2. Set a retention policy for records (Eg. auto delete after 1 week)
  3. Choose a policy for automatic record deletion when memory is full (Eg. least recently used first)
dger1 commented 5 years ago

There are these two options (which can be used together): https://redis.io/topics/persistence