Hi,
I’m setting up the preview with imaginary.
After having generate all preview, I see a weird behavior while loading a folder with >100 pictures :
- Nextcloud make lot of postgres call, make sense since metadata is into the database (make me increase the
max_connections
config). - Nextcloud still make POST calls to my imaginary container even if the preview already exist (making high CPU pic).
I don’t understand why there are some much calls if the preview already exist into the appdata folder.
Part of Docker compose:
nextcloud-imaginary:
image: nextcloud/aio-imaginary:latest
container_name: nextcloud-imaginary
restart: on-failure
environment:
PORT: 9000
command: -cpus 5 -concurrency 80 -enable-url-source
cap_add:
- SYS_NICE
nextcloud:
image: nextcloud
container_name: nextcloud
hostname: nextcloud
restart: on-failure
expose:
- 80
environment:
VIRTUAL_HOST: cloud.azlux.fr
volumes:
- nextcloud:/var/www/html
- .nextcloud/custom_apps:/var/www/html/custom_apps
- ./nextcloud/config:/var/www/html/config
- ./nextcloud/nextcloud-data:/var/www/html/data
depends_on:
- postgres
- redis
Imaginary is into the enabledPreviewProviders
config at first entry.
Same for the URL : preview_imaginary_url' => 'http://nextcloud-imaginary:9000'
Imaginary logs during a gallery page load :
nextcloud-imaginary | 172.19.X.X - - [16/May/2023 09:12:46] "POST /pipeline?operations=%5B%7B%22operation%22%3A%22autorotate%22%7D%2C%7B%22operation%22%3A%22fit%22%2C%22params%22%3A%7B%22width%22%3A256%2C%22height%22%3A256%2C%22stripmeta%22%3A%22true%22%2C%22type%22%3A%22png%22%2C%22norotation%22%3A%22true%22%2C%22quality%22%3A%2260%22%7D%7D%5D HTTP/1.1" 200 93461 6.6516
nextcloud-imaginary | 172.19.X.X - - [16/May/2023 09:12:47] "POST /pipeline?operations=%5B%7B%22operation%22%3A%22autorotate%22%7D%2C%7B%22operation%22%3A%22fit%22%2C%22params%22%3A%7B%22width%22%3A256%2C%22height%22%3A256%2C%22stripmeta%22%3A%22true%22%2C%22type%22%3A%22png%22%2C%22norotation%22%3A%22true%22%2C%22quality%22%3A%2260%22%7D%7D%5D HTTP/1.1" 200 33402 7.6617
Best regards,
Azlux