issues with typesense container
Hello,
First of all, many thanks for your great work on immich and for your great support on this channel.
I have installed immich on a rpi 4 8Gb with portainer, and it has been great for months now. I have lately decided to add ML and I don't know if it is related, but since I am experiencing some issues with the typesense container :
- high cpu usage
- tsdata is very large and would occupy most of my sd card
On previous discussions here, I was told that the server could not connect to the typesense container (or the other way), that there are issues with typesense 0.24.1. I was told to delete tsdata and to use typesense 0.24
I did that, but I still have the same issues. The only way for me to keep immich alive at the moment is to disable typsense completely.
I have tried to look on the github or here for similar issues, and have found few topics concerning typesense but no possible workaround in my case.
Is it a known issue ? I believe that the dev team is targeting to replace typesense with postgres in the future.
Many thanks for your support
3 Replies
the typesense log if that could help
To reduce Typesense's CPU usage, you can set the
TYPESENSE_THREAD_POOL_SIZE
env for the typesense service:
The example above sets it to the number of CPU cores on the device.
Edit: Actually, I think you'd need to set an actual number here since $(nproc)
won't get evaluated.Hi many thanks for your answer, I also have tried to limit the cpu usage of the container with Portainer but it was not enough
I will try your solution
may I bother you a bit further and ask you what is the size of your tsdata volume ? I believe that I will not have enough space on my sd card and that I would need to move this volume on my nas
ok, I think I have find something. I have deleted the typesense container and the tsdata volume before creating it again (using 0.24.0 version). And then in Immich, I run the "Tag objects" and "Encode Clip" jobs again
now things seem to be working properly : no high IO, tsdata volume size is contained