MSPARP / newparp

The new MSPARP
GNU Affero General Public License v3.0
5 stars 11 forks source link

Set expires for chat cache and celery results. #141

Closed nepeat closed 6 years ago

nepeat commented 6 years ago

Redis is swapping very hard and the memory usage is the whole machine because of the chat message cache and celery results keys.

Keyspace

db0:keys=1022792,expires=64559,avg_ttl=1182289558
db1:keys=2189460,expires=2189460,avg_ttl=10152642
db2:keys=4205,expires=1909,avg_ttl=24703

free -m

             total       used       free     shared    buffers     cached
Mem:          5959       5825        134          0        131         90
-/+ buffers/cache:       5603        356
Swap:         4095       1488       2607