Hello, is it possible to deploy typesense in Digit...
# community-help
b
Hello, is it possible to deploy typesense in Digital Ocean App platform? I'm not sure because instances can be destroyed
k
You can deploy it, but clustering requires private network to be reliable. I'm not sure if Digital Ocean provides an internal network for communication between instances. Other cloud providers like AWS & GCP do.
b
@Kishore Nallan As I have informed you, I have created a multi node cluster (Load balancer with 3 droplets - Ubuntu) but I want to find a way in order to scale my setup fast. For example, in app platform I can set easily my instances to eg. 6. Do you suggest any other way for scalability?
With my setup now, if I want to add 2 more nodes, I have to create 2 new droplets, install typesense in ubuntu, set nodes etc
k
Any reason for not scaling vertically, rather than adding more machines? Since Typesense does not shard the underlying data, vertical scaling should work well.
b
So, it's better for example to have 5 nodes and scale them vertically? What min size (RAM-CPU) of instance do you recommend for production?
k
Yes, as you add more nodes, write latency will increase. Exact RAM/CPU depends on your dataset and traffic volume.
b
My dataset will be static, on average 3-5K docs max. Do i need a cpu optimized instance or more ram?
k
You don't need much RAM for that. How many queries / second are you expecting during peak traffic?
b
50-100
k
5 nodes with 2 CPUs each is sufficient to handle that provided the requests are evenly distributed across all nodes. That's a good starting point. You can check the CPU usage and decide if you need to switch to either 3 node with 4 CPU or 5 node with 4 CPU after that.
b
Okay thank you Kishore 👍
🙌 1