Disable new connection when memory usage is high.
Almost all server down developed by django framework was caused by exhausted memory.
pip install django_guard # not upload to pypi since 2023/11/27
- Upload to pypi
- Add user documentation
- Add
django_guard
to yourINSTALLED_APP
. - Add
django_guard.middleware.GuardMiddleware
tosettings.middleware
.` - Set threshhold to
settings
GUARD_THRESHOLD = {
'memory': 0,
}