#community-help

Maintenance and Servers Discussion for Typesense

TLDR Carlo asked about maintenance and primary node assignment in Typesense. Kishore Nallan explained that Typesense requires no maintenance and operates on either 1 or 3+ servers. No override available in their clustering framework.

Powered by Struct AI
Aug 24, 2023 (3 months ago)
Carlo
Photo of md5-749f5f0254cb5678484efd4f599a4a25
Carlo
07:08 AM
Two quick question that I couldn't find from the site.
• Does typesense require any maintenance (think db optimizations)
• Is there a way to make it work in a mode where it always accepts a given node as the primary node? (Planning on running in k8s with 2 nodes I want to avoid getting in the situation where I Get stuck because it cannot pick the right primary node)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:59 AM
1. There are no maintenance operations.
2. Typesense uses raft which needs three instances for quorum.
Carlo
Photo of md5-749f5f0254cb5678484efd4f599a4a25
Carlo
12:39 PM
So typesense can only work with 1 or 3+ servers? Not two?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:40 PM
Yes. Nothing stopping you from running two servers but if one server goes down both will reject writes and reads because there is no quorum and without quorum there will be split brain.
Carlo
Photo of md5-749f5f0254cb5678484efd4f599a4a25
Carlo
12:44 PM
Makes sense.No way to override I guess? (Within k8s you node 0 will always be up 1 way or aound,thats' why I asked)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
01:04 PM
The clustering framework we use doesn't allow that type of override