RunpodR
Runpod2y ago
184 replies
teddycatsdomino

Runpod serverless overhead/slow

I have a handler that is apparently running very fast, but my requests are not. I'm hoping to process video frames. I know this is an unconventional use case, but it appears that it is working reasonably well with this one exception:

2024-08-11T23:25:55.468886839Z INFO:     127.0.0.1:40312 - "POST /process_frame HTTP/1.1" 200 OK
2024-08-11T23:25:55.469954721Z handler.py          :61   2024-08-11 23:25:55,469 Local server request completed in 0.079 seconds
2024-08-11T23:25:55.470257231Z handler.py          :70   2024-08-11 23:25:55,470 Handler completed in 0.080 seconds


What we're actually seeing are not fast responses, but responses that take at least a second, and often longer. The runpod dashboard claims that this is execution time, but the worker logs disagree.
Request ID Delay Time Execution Time
sync-61d689e6-502e... 0.18s 1.28s


What's going on here? Is there anything we can do?

I'll post my handler code in the next message.
image.png
image.png
Was this page helpful?