Open Goose97 opened 1 year ago
Thanks for taking this on! I am curious, did you run any kind of stress testing on this? I would like to see how the error rate and throughput compare to what we have in main.
Oh, I haven't. Do we have any kind of stress testing/benchmark framework already in the repo? If not, do you have any suggestions about tools/frameworks?
Sorry for the delay, but I finally got around to testing this out and found just a minimal performance regression but a total elimination of errors that are present on finch:main, so I think we should proceed with this change. I fixed up a couple things, but I want to merge #228 first, and then deal with any merge conflicts in this pr.
@sneako is this the last issue for a new release?
I made a application using OpenAI API via Finch HTTP2 pool.
And I got so much (Finch.Error) disconnected
errors.
Is this issue related to the problem?
I made a application using OpenAI API via Finch HTTP2 pool.
And I got so much
(Finch.Error) disconnected
errors.Is this issue related to the problem?
It could be. I would be very interested to know if this PR helps with the issue you are seeing. I have been struggling to find time to test this properly myself.
HTTP2 connections will unregister themselves from the pool once enter connected_read_only and disconnected states, and register themselves once they reconnect.
Fixes #216