RLIMIT NPROC?
Is anyone familiar with the following error - or what could be causing it?
OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
36 Replies
Project ID:
e9489f6a-7b0a-45d9-8268-5cd182f9c22c
e9489f6a-7b0a-45d9-8268-5cd182f9c22c
how many workers are you trying to use
gunicorn --worker-class=gevent --worker-connections=100 --workers=30 app:app
that is farrrrrr too many workers
(2 x 8) + 1 = 17
you should be using no more than 17, and even then its not recommended to just set your workers to the max number
try 4 workers
Implemented that change last time based on feedback here while debugging timeouts 😬
Trying now
out of curiosity, who told you that?
Working now.
You did - but this was a while ago.
https://discord.com/channels/713503345364697088/1100181917686562857/1100196867746320475
i didnt say 30
i also gave you the equation 🙂
lol
That you did. Not sure how I wound up with it at 30. Either way it's working now.
The eternal battle between spending my weekend trying to make thing not fall apart, vs marketing or trying to improve usability.
is this the backend for yourmove.ai?
It is.
very cool
Looks like it crashed again 😮
Ugh
try a different worker class other than gevent?
as in removing that line altogether?
no, move to a different worker class
Sorry - I mean removing
--worker-class=gevent
so it returns to the default.no lol
use a different worker class
not the default sync worker
Still getting the previous error btw. Reading about different worker classes now.
OpenBLAS blas_thread_init: pthread_create failed for thread 48 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
What's the argument against gthread?argument against gthread?
As the worker type. Disregard - don't mean to monopolize your time for thing I should be able to google.
don't worry about my time, but I don't know if I've told you that I'm not a python developer
I'm a data analyst, ne mechanical engineer lol
fancy
Would be great to take a sabatical and actually learn to code.
learning to code is overrated
says the person who still hasn't learned to code
Explain?
lol just a stupid joke
Front-end for my site it built in low code and I hate it so much
Alright. Set to eventlet - let's see how it goes. Still surprised that it started crashing despite no meaningful changes made.
Still getting errors. What the **
OpenBLAS blas_thread_init: pthread_create failed for thread 63 of 64: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
have you tried googling that error
Yes but not hard enough. Gimme a bit to try and solve.
It seems like a numpy issue. I found the following solution. Would the equivalent of implementing it on my end be:
- Running the export in the console?
- Setting as env variable
- Changing the procfile?
set those variables in the railway service variables
@Brody minor / unrelated - but is there a way to see the request url in logs (or otherwise)?
im 99% sure you can configure gunicorn to log network requests to stdout, dont know how though
maybe??
--access-logfile -
https://docs.gunicorn.org/en/stable/settings.html#accesslog