Fixing Errors on Typesense Cluster
TLDR Tugay is having issues with their Typesense cluster, and Jason is trying to diagnose the problem. They have ruled out issues with the data dir and are currently considering whether the errors could be due to high concurrent writes or running bulk migrations. They plan to test with 0.24.0.rcn56 Typesense version.
1
Jan 12, 2023 (9 months ago)
Tugay
03:26 PMJason
03:27 PMJason
03:28 PMJason
03:28 PMTugay
03:28 PMTugay
03:29 PMsudo docker run -i -d --restart always --network host --name typesense-server -p 8107:8107 -p 8108:8108 --ulimit nofile=50000:50000 -v /var/lib/typesense:/var/lib/typesense -v /var/log/typesense:/var/log/typesense -v /etc/typesense/:/etc/typesense/ typesense/typesense:0.23.1 --config /etc/typesense/typesense-server.ini
Tugay
03:29 PMJason
03:30 PMTugay
03:30 PMJason
03:30 PMTugay
03:31 PM; Typesense Configuration
[server]
api-address = 0.0.0.0
api-port = 8108
peering-port = 8107
data-dir = /var/lib/typesense
api-key = ----
log-dir = /var/log/typesense
nodes = /etc/typesense/nodes.txt
log-slow-requests-time-ms = 1000
thread-pool-size = 64
Jason
03:31 PMTugay
03:32 PMTugay
03:36 PMTugay
03:40 PM$ docker exec -it typesense-server du -sh /var/lib/typesense/*
2.7G /var/lib/typesense/db
273M /var/lib/typesense/meta
1012M /var/lib/typesense/state
Tugay
03:40 PMJason
03:40 PMJason
03:41 PMTugay
03:41 PM1
Jason
03:42 PMTugay
03:42 PMJason
03:43 PMTugay
03:45 PMJason
04:54 PMTugay
06:37 PMJason
06:59 PMTypesense
Indexed 2779 threads (79% resolved)
Similar Threads
Discussion About Typesense Nodes Not Synchronizing Correctly
Erick experienced an issue where documents weren't updated properly in a Typesense instance running on 3 nodes. Upon requesting debug logs and configs, Jason identified that these nodes weren't part of the same cluster. They couldn't resolve the nodes' failure to connect issue and recommended a fresh installation.
Troubleshooting Typesense Server Error on Docker
vikram was facing an error with Typesense Server Docker container and loss of data on restart. Kishore Nallan guided to avoid mounting tmp directory from localhost and explained stopping the Docker container.
Trouble with Typesense Memory Usage when Restarting Docker Container
Blend reports increased memory usage when restarting Docker with Typesense, information shared with Jason and Kishore Nallan. Potential data edge case identified as potential cause, although resolution undetermined.
Improving Query Results and Docker Issue with Typesense
Draisy struggled with retrieving query results and a docker command not working with a newer version of typesense. Jason suggested getting Typesense logs and upgrading cluster, but problems persist.
Troubleshooting Typesense Document Import Error
Christopher had trouble importing 2.1M documents into Typesense due to memory errors. Jason clarified the system requirements, explaining the correlation between RAM and dataset size, and ways to tackle the issue. They both also discussed database-like query options.