System Memory vs Typesense Memory
In the Typesense Cloud Dashboard, you'll see two memory statistics: System Memory and Typesense Memory.
System Memory: This is the total amount of physical RAM that is currently being used. This includes OS processes and also the Typesense process. This only includes the data currently residing in RAM and excludes memory contents that have been swapped to disk by the OS (this happens when physical RAM is exhausted).
Typesense Memory: This is the amount of memory that is consumed by the data indexed in Typesense. This number includes both physical RAM and disk-based swap as well.
To get optimal performance from Typesense, you want to ensure that Typesense Memory is within 85% of the total RAM capacity available. Since Typesense is an in-memory store, performance starts getting unpredictable if physical RAM is exhausted and swap space is used. If this happens, please reach out to us to upgrade your cluster's RAM capacity.