Hi folks, I wonder if anyone has built an auto-sca...
# community-help
a
Hi folks, I wonder if anyone has built an auto-scaling process for self-hosted Typesense? My idea is to have a Systemd Service running on each instance to discover instances with a specific tag. If the code sees a change in the quantity of instances, it will pick up the new IPs and update "nodes.txt" and within 30 seconds, Typesense should add it to the cluster, syncing the data with it. Same thing when it sees fewer instances - it would remove IPs from the file. I haven't seen this in the docs, and at least a few questions I have are untested: 1. How long does it take to sync the DB 2. What will happen with requests that the LB forwards to a node that is not synced yet 3. When you scale down, the instance will be removed from the LB target group right away, so it should not recieve traffic, but how will Typesense react to an instance being down and after 30 seconds update it's config on all nodes at relatevely the same time/