Unable to run typesense on metal server
khabubuphathu
PROOP

10 months ago

I have been trying to migrate my typesense service to run on the new metal and I m unable to get it working because it just terminates abruptly on metal only with the following error:

terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
typesense_server.cpp:149] Typesense 28.0 is terminating abruptly.
Solved

8 Replies

khabubuphathu
PROOP

10 months ago

c06fdf6f-8e34-4cc2-9538-5a8c5a5ccfd7


brody
EMPLOYEE

10 months ago

hello, have you tried disabling the thread pool size or the parallel load?


khabubuphathu
PROOP

10 months ago

I updated the TYPESENSE_THREAD_POOL_SIZE environment variable to 0(Disabling the thread pool size), but still terminates abruptly.


khabubuphathu
PROOP

10 months ago

I also updated the TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD env variable to 0 but it still crashes


brody
EMPLOYEE

10 months ago

is 0 a valid setting, i would set it to at least some value


khabubuphathu
PROOP

10 months ago

Removed the TYPESENSE_NUM_COLLECTIONS_PARALLEL_LOAD and set TYPESENSE_THREAD_POOL_SIZE to 8(number of cores of server * 8) So it will use 8 threads. Now it works.

Still unsure what is the optimal amount because I don't know the number of cores are available on the metal server.


brody
EMPLOYEE

10 months ago

your application still has access to 32 vCPU


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 11 months ago


Loading...