Closed thiner closed 10 months ago
Are you using test tools, like Jmeter or scripts?
I am using hey
for load testing. Test script as below:
hey -n 50 -c 4 -t 60 -m POST \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-D data-1pic.json \
http://host:port/v1/generation/text-to-image\?accept=image%2Fpng
and I found that, if I kill the the process by kill -9 pid
, the models/checkpoints
folder will be renamed to models/checkpoints_corrupted
.
Maybe an error from previous version of Fooocus-API. Please try with latest version. I just fixed a bug which will make worker queue stucked when load model failed or something like that.
Tested it on the latest version, problem solved. Thanks!
I was doing the load test. I set the queue-size to 4, and then fired 5 concurrent requests to the API server. All requests are failed. And the server console keeps outputing
I can't even stop it by Ctrl+C