#community-help

Resolving 100% CPU Usage Issue in Self-Hosted Typesense

TLDR Hariharan reports high CPU usage during evening hours on their self-hosted Typesense setup. Kishore Nallan suggests checking for external processes and enabling access logging to identify the cause, but the issue remains unresolved.

Powered by Struct AI
Mar 23, 2023 (8 months ago)
Hariharan
Photo of md5-18c41204e6fd9bb8436d758a90a0e5ef
Hariharan
11:46 AM
Hi!! We are facing issue of 100% CPU usage during evening time everyday. During this, no response from typesense. How to resolve this issue? If you need any log information, please let me know how to retrieve this log for your analysis.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:53 AM
Typesense cloud or self hosting?
Hariharan
Photo of md5-18c41204e6fd9bb8436d758a90a0e5ef
Hariharan
11:56 AM
It is self hosting on kubernetes cluster
11:56
Hariharan
11:56 AM
Kind is deployment.
11:58
Hariharan
11:58 AM
Can you please clarify whether typesense will reindex data at any interval even though no change in documents?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
11:59 AM
No, it doesn't. Unfortunately for self hosted cluster, there is not much easy troubleshooting we can do. You will have to figure out if some cron is running or some other crawler / external process is hitting the app. You can enable access logging and check that for IPs.
Hariharan
Photo of md5-18c41204e6fd9bb8436d758a90a0e5ef
Hariharan
12:00 PM
How to enable access logging?
12:03
Hariharan
12:03 PM
We are seeing client ip coming as 0.0.0.0. in fact our typesense service is behind load balancer. In this case,, any configuration needs to be done?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:09 PM
If it's behind LB, then the LB might not be passing the IP along. I don't think we log forwarded IPs even if LBs send them.

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3005 threads (79% resolved)

Join Our Community