#community-help

Understanding Typesense Throttling Parameters

TLDR Nelson queried about Typesense parameters --healthy-read-lag and --healthy-write-lag. Jason explained that these control widespread write operations and ensure read prioritization. They further elaborated on interpreting logs and network request thresholds.

Powered by Struct AI
9
25mo
Solved
Join the chat
Oct 13, 2021 (25 months ago)
Nelson
Photo of md5-04a94d0e1b53117c272637eb497a1540
Nelson
12:31 AM
These parameters what works do they have? Jason --healthy-read-lag and --healthy-write-lag
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:33 AM
By default if heavy write operations are sent to Typesense, they are throttled so that reads (searches) are prioritized and not affected.
12:33
Jason
12:33 AM
Those parameters are to help control how much throttling is applied
12:34
Jason
12:34 AM
You want to essentially watch the logs to see if the thresholds are breached as you're writing data, and increase them as needed
Nelson
Photo of md5-04a94d0e1b53117c272637eb497a1540
Nelson
12:34 AM
By default it is 1000 and 500
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:35 AM
Yup, that's the number of writes that have been received, but yet to be applied to the index
Nelson
Photo of md5-04a94d0e1b53117c272637eb497a1540
Nelson
12:35 AM
Is it saying that the server does not receive read or write requests if the number of indexed documents differs from the amount of documents in database?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:37 AM
Similar concept, but it's not based on number of documents, it's based on number of writes. For eg: in a batch import, one write can have many number of documents depending on your import code
Nelson
Photo of md5-04a94d0e1b53117c272637eb497a1540
Nelson
12:37 AM