Redis Maintenance
-
Hello,
Have a 7+ year old install of nodebb, running on redis - the redis database size is 50gb+..
Does anyone have any reccomendations on cleaning up orphan/old/data - for instance, i notice we have a lot of ip:::uid keys, - some records being 15mb+ which i assume are not all needed? Older users also seem to have a bunch of IP's in their uid::ip keys.
Any advice greatly appreciated, am trying to shave as much space as possible!
-
You can delete all they keys that start with
analytics
,ip:recent
anderrors
. That should save you alot of space. Can also write a script to delete users who haven't logged on in x years and haven't posted anything. -
@smyther42 It's a mapping of ip addresses to user ids. You can safely delete those too.