bananaml / potassium

An HTTP serving framework by Banana
Apache License 2.0
97 stars 9 forks source link

add queueing and multi process support #48

Closed Peddle closed 9 months ago

Peddle commented 9 months ago
erik-dunteman commented 9 months ago

Doing some QA.

I am just observing behavior, not saying we should fix anything just yet.

erik-dunteman commented 9 months ago

If I run single worker, three background tasks w/ 5s sleep, they all queue (nice) but the 200 responses all log under the first request id.

Screen Shot 2023-12-07 at 6 59 24 PM
erik-dunteman commented 9 months ago

Worker ID super helpful in logs. The order they consume from the queue makes sense. 3 bg calls to 2 workers, first 2 calls claimed immediately, third claimed by the worker that took # 1

Screen Shot 2023-12-07 at 7 02 43 PM
erik-dunteman commented 9 months ago

Going to try with 100k processes, wish me luck

erik-dunteman commented 9 months ago

Got up to 32 workers (BERT) running locally, laptop struggled but seemingly no bugs.

I'd suggest

erik-dunteman commented 9 months ago

Tentative LGTM from me given above is addressed