You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting these messages after regular interval even when nothing is happening on application.
redis_1 | 2022-12-29T11:13:04.096568776Z 1:M 29 Dec 2022 11:13:04.096 * 100 changes in 300 seconds. Saving...
redis_1 | 2022-12-29T11:13:04.097868021Z 1:M 29 Dec 2022 11:13:04.097 * Background saving started by pid 280
redis_1 | 2022-12-29T11:13:04.101346575Z 280:C 29 Dec 2022 11:13:04.101 * DB saved on disk
redis_1 | 2022-12-29T11:13:04.103382853Z 280:C 29 Dec 2022 11:13:04.103 * RDB: 0 MB of memory used by copy-on-write
redis_1 | 2022-12-29T11:13:04.198490918Z 1:M 29 Dec 2022 11:13:04.198 * Background saving terminated with success
This led me to check what is being written on redis using redis-cli monitor on running redis instance using
TL:DR; our taskmanager hits redis every 0.2 seconds to check for pending tasks we can reduce it by adding a parameter in
config/settings/base.py
Long Details
I keep getting these messages after regular interval even when nothing is happening on application.
This led me to check what is being written on redis using redis-cli monitor on running redis instance using
docker exec -it <instanceID> redis-cli monitor
I was able to identify these messages
These messages point to django-q as the culprit, looking at the closed issues on the repository found Koed00/django-q#359 matching my scenarios and that points to a bug paperless-ngx/paperless-ngx#1084 which points to paperless-ngx/paperless-ngx#1084 (comment) comment and confirms suspicion. There is an associated pull request : https://github.com/paperless-ngx/paperless-ngx/pull/1091/files and Documentation https://django-q.readthedocs.io/en/latest/configure.html#guard-cycle
https://github.com/Pithus/bazaar/blob/master/config/settings/base.py#L346 This is our config file
I have reduced this to 5 seconds and I see a slightly lower cpu usage but I want someone else to test this and confirm if this is the case.
The text was updated successfully, but these errors were encountered: