Unable to run typesense on metal server
khabubuphathu
PROOP

a year 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

a year ago

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


a year ago

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


khabubuphathu
PROOP

a year ago

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


khabubuphathu
PROOP

a year ago

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


a year ago

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


khabubuphathu
PROOP

a year 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.


a year ago

your application still has access to 32 vCPU


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...