RC-3 CA testing #106
Labels
No labels
bug
dependencies
duplicate
enhancement
help wanted
invalid
question
renovate: stop-updating
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
renovate: stop-updating
security
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: nomyo-ai/nomyo-router#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@JTHesse the new rc-3 introduces a cache for clients to be reused rather than created for each single request.
The previous behaviour introduced a full init with the complete OS truststore for CA which is a heavy lift causing a performance ceiling.
The cache enables now 7x more req/s with concurrent users and cuts latency to 1/8 making the router in the same machine much more performant and responsive.
All tests pass, but as we are not using custom CA - and I believe you do - may I kindly ask once more for a real-world testing on your end.
docker pull bitfreedom.net/nomyo-ai/nomyo-router:0.9.9-rc3highly appreciated.
if not possible, just close the issue.
reference:
3cd530586cHi @alpha-nerd, I just tested the rc3 version.
I didn't see any issues. However, the caching doesn't seem to take effect.
Currently, I am using exact cache match:
Which is also acknowledged in the log:
[cache] Exact-match cache ready (backend=sqlite)But running the same /api/chat request twice doesn't trigger caching:
This seems to be a different issue,
the cache in this issue refers to a httpx client cache, that was refactored especially in light of TLS Certificate Authorities.
The code until now was re-creating a http-connection for each backend api request, which adds a lot of latency when using CAs, because the re-init of the connection will load the full OS CA truststore every single time.
This refactor now, establishes a connection pool for backend requests, I only couldn't test with a local CA.
Thought you were using this featue. Do you?
P.S.: opened #112 for the semantic-cache related issue
Yes I am using custom CA, in that regard I didn't notice any issues and I guess you can close this issue ;)
Thanks for the confirmation