Closed ykrasik closed 3 months ago
There seems to be a bug about the settings key that doesn't get removed correctly, so you are seeing
[Nest] 17 - 06/14/2024, 7:55:53 AM WARN [Api:DuplicateService~b4mce4tp] Unknown keys found: {
"machineLearning": {
"classification": {
"enabled": true,
"modelName": "google/vit-base-patch16-224"
}
}
}
Can you go to the machine-learning settings on the administration page, reset them to default, save them, and then reconfigure them to your current settings?
Hi,
Thanks for answering. That did remove the warnings from the logs, but the CPU spikes are still there.
unfortunately i can confirm the behaviour for the server and ml docker container since 1.160.1 :-( No obvious errors in the logs
server:
ml:
Could it be related to the health checks that were added recently? I'm thinking maybe the constant requests are creating a need to do more frequent garbage collection or something.
To confirm, you can add this to both the server and ML services.
healthcheck:
disable: true
That did it :-) Thanks
I can also confirm:
The bug
Hi,
Since upgrading to version 1.106.2 I noticed increased periodic CPU usage in both
immich-server
andimmich-machine-learning
. There are spikes of cpu usage inimmich-machine-learning
every 6-7 minutes and inimmich-server
every 12-15 minutes:Before
After
After upgrading to 1.106.2 I immediately ran the duplicates detection & thumbnail generation jobs, so in case one of those jobs got the system into an invalid state which now causes these periodic spikes - I wouldn't be able to provide the CPU graph before running those jobs.
I'm running this on an Orange Pi 5+ (Rockchip RK3588). Also a while ago I tried to get hw acceleration to work - as far as I recall I managed to make it work for transcoding but not for ML, and left it in this unfinished state. AFAICT it's working, just not utilizing the hardware.
The logs for
immich-server
show this warning periodically:My CLIP model is
ViT-H-14-quickgelu__dfn5b
and facial recognition isbuffalo_l
.I use centralized postrgres (16.3) & redis (7.2.5) instances.
The OS that Immich Server is running on
Ubuntu 22.04.4 LTS
Version of Immich Server
v1.106.4
Version of Immich Mobile App
v1.106.1.build.142
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
I'm on 1.106.4 now, but the issues started after upgrading to 1.106.2