Open pi2cto opened 1 year ago
same issue here, any solution?
Same issue, it was quite smooth for me when I was using 0.13-lts but started having this issue when 1.0.
I got the same issue. Any advice?
Facing same issue, is there way to fix it?
@przdev I tried the steps in the original post and couldn't manage to reproduce it. Since it is several months old, can you provide the steps to reproduce it?
I am having the same issue, has anyone found a solution?
This looks like the max_latency_ms
is just set too low, have you tried increasing that value?
Describe the bug
i am using a custom runner model
i am testing batching by enabling batching on the runner and testing it using bentoml server --production flag i have configured a timeout of 60 seconds and batching configuration of 100ms timeout and 1000 as max batch size
when every i perform requests with batching enabled , i am getting the below error
however without async the same code works properly without any issues
Below is the test file
To reproduce
to reproduce the issues , save the above code in test.py file pip install bentoml scikit-learn==1.0.2 numpy scipy
run the code bentoml --production test.py --api-workers=1
run the below test code 1) synchronous mode url="http://0.0.0.0:3000/v1/test" for x in {1..500}; do curl --request POST $url --header 'Content-Type: application/json' --data-raw '{"query":"are you a real robot","timezone":"Asia/Kolkata", "lang_code":"en","skill_id":"0"}' & done
2) with async mode using async_run method to call the runner url="http://0.0.0.0:3000/v1/test1" for x in {1..500}; do curl --request POST $url --header 'Content-Type: application/json' --data-raw '{"query":"are you a real robot","timezone":"Asia/Kolkata", "lang_code":"en","skill_id":"0"}' & done
The async run method causes lot of errors with above error
Expected behavior
with async mode should be able to handle all the requests successfully and support higher throughput compared to non synchronous mode
without async run the scripts executes successfully with no error
Environment
configuration.yml