scaling without k8 - multiple microservice containers running
Context
Hi, i am looking to see if i can accelerate the initial scans/asset generation of immich by offloading workloads to a secondary pc. Immich currently lives on a machine that runs multiple services including plex. Immich is fairly cpu heavy and have found that this impacts plex pretty severely. I have also had times where i need to restart the server which impacts plex viewers. because of this im attempting to setup an immich-microservices container on my personal machine that has a faster CPU and nvidia card. There is little to no documentation at all regarding scaling microservices so i am trying to figure this out. Apologies if my thought process here is fairly rudimentary so feel free to let me know if there are better approaches to what i am attempting.
Questions
my understanding is that i should be able to set up two instances of immich on seperate machines on the condition that i map each to the same directories and leverage the same postgres db. I have done this. but result in the below error which i suspect is a postgres access issue
I have left out a lot of information due to discord limitations
Hi, i am looking to see if i can accelerate the initial scans/asset generation of immich by offloading workloads to a secondary pc. Immich currently lives on a machine that runs multiple services including plex. Immich is fairly cpu heavy and have found that this impacts plex pretty severely. I have also had times where i need to restart the server which impacts plex viewers. because of this im attempting to setup an immich-microservices container on my personal machine that has a faster CPU and nvidia card. There is little to no documentation at all regarding scaling microservices so i am trying to figure this out. Apologies if my thought process here is fairly rudimentary so feel free to let me know if there are better approaches to what i am attempting.
Questions
my understanding is that i should be able to set up two instances of immich on seperate machines on the condition that i map each to the same directories and leverage the same postgres db. I have done this. but result in the below error which i suspect is a postgres access issue
immich_microservices | Starting api worker
immich_microservices | Starting microservices worker
immich_microservices | [Nest] 20 - 06/09/2025, 4:48:48 AM LOG [Microservices:EventRepository] Initialized websocket server
immich_microservices | [Nest] 32 - 06/09/2025, 4:48:48 AM LOG [Api:EventRepository] Initialized websocket server
immich_microservices | microservices worker error: Error: getaddrinfo ENOTFOUND base, stack: Error: getaddrinfo ENOTFOUND base
immich_microservices | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)
immich_microservices | microservices worker exited with code 1
immich_microservices | Killing api process
I have left out a lot of information due to discord limitations