#community-help

Configuring Typesense HA Cluster on AWS

TLDR Agustin was looking for best practices to run a Typesense HA cluster on AWS, particularly regarding horizontal scaling. Kishore Nallan recommended using standalone instances or an ASG for static data, rather than clustering.

Powered by Struct AI
4
29mo
Solved
Join the chat
Jun 20, 2021 (29 months ago)
Agustin
Photo of md5-8564a42449c5b0144c2f3d3f1cab883a
Agustin
08:06 PM
Also, just in case someone has tried it before. What's best practice for running a Typesense HA cluster on AWS? Has anyone been able to do it on ECS?
Jun 21, 2021 (29 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:01 AM
It is simple to just set up three nodes and list their IPs a 'nodes' file passed as argument while starting the service. Typesense will then take care of clustering.

https://typesense.org/docs/0.20.0/guide/high-availability.html#configuring-a-typesense-cluster
Jun 22, 2021 (29 months ago)
Agustin
Photo of md5-8564a42449c5b0144c2f3d3f1cab883a
Agustin
06:47 PM
Does this cover the use-case of horizontally scaling instances? I thought maybe I could freeze my dataset in an AWS instance and use auto-scaling to launch instances behind a load balancer
Jun 23, 2021 (29 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:37 AM
If your data is static then you don't need to use clustering. You can have standalone instances or use an ASG. But you wiill need to write to each standalone instance individually when you want to do a data refresh.