Ankarao
01/10/2025, 8:23 AMFanis Tharropoulos
01/10/2025, 4:22 PMhealthy-read-lag
and healthy-write-lag
are essentially safety thresholds that Typesense uses to maintain system health and data consistency. Think of them as traffic controllers for your operations.
When you set healthy-read-lag
(default 1000), you're telling Typesense "hey, if reads fall behind by more than this much, start rejecting read queries." This helps avoid serving outdated data to users. Similarly, healthy-write-lag
(default 500) controls when to start rejecting writes if the system gets too backed up.
For high-volume scenarios, you might want to tweak these values higher to give your system more breathing room to handle the load. But there's a trade-off - higher values mean potentially serving slightly older data. It really depends on what's more important for your specific use case: data freshness or handling more operations.
Let me know if you want to discuss specific numbers for your setup - it'd help to know more about your hardware and requirementsAnkarao
01/18/2025, 3:56 PM