mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 22:40:16 +02:00
Tuning Docs - Redis Compression
This commit is contained in:
parent
47fec23f2e
commit
b73072dec0
@ -13,4 +13,5 @@ The official installation guide will install a stable version of Alliance Auth t
|
||||
|
||||
gunicorn
|
||||
celery
|
||||
redis
|
||||
```
|
||||
|
22
docs/maintenance/tuning/redis.md
Normal file
22
docs/maintenance/tuning/redis.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Redis
|
||||
|
||||
## Compression
|
||||
|
||||
Cache compression can help tame the memory usage of specialised installation configurations and Community Apps that heavily utilize Redis.
|
||||
|
||||
Various compression algorithms are supported, with various strengths. Our testing has shown that lzma works best with our use cases. You can read more at [Django-Redis Compression Support](https://github.com/jazzband/django-redis#compression-support)
|
||||
|
||||
Add the following lines to `local.py`
|
||||
|
||||
```python
|
||||
import lzma
|
||||
|
||||
CACHES = {
|
||||
"default": {
|
||||
# ...
|
||||
"OPTIONS": {
|
||||
"COMPRESSOR": "django_redis.compressors.lzma.LzmaCompressor",
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user