-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: HttpClient connection is very slow from Windows client to Linux server #2795
Comments
@anderatt can you try to |
@anderatt, adding on top of what @jeffchuber mentioned, also add culr -v http://192.168.0.5:8000/api/v1/heartbeat If you don't have curl available either thru WLS or minGW you can use powershell command as follows: Invoke-WebRequest -Uri "http://localhost:8000/api/v1/heartbeat" -Verbose There are many reasons why requests might be slow, granted some of them can be from Chroma client or server. Some background information about how the Chroma client works. When you create a new client INFO: [16-09-2024 07:50:48] Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: [16-09-2024 07:50:51] 192.168.65.1:30408 - "GET /api/v1/tenants/default_tenant HTTP/1.1" 200
INFO: [16-09-2024 07:50:51] 192.168.65.1:30408 - "GET /api/v1/databases/default_database?tenant=default_tenant HTTP/1.1" 200 Let me ask a few clarifying questions:
|
@jeffchuber and @tazarov Thanks for answer me. So, let provide more information for you: Answer for the command : curl -v http://192.168.0.5: 8000
PS C:\Users\ander> curl -v http://192.168.0.5:8000
The next command works fine!! The execution were in miliseconds StatusCode : 200
Forms : {} How is your machine connected to the server: home, corporate etc. network? I'm connecting in two ways, the first is the one I've used most, it's installing a VM on Oracle VirtualBox with Ubuntu 24.04 installed. The second, once the problems appeared, was to create the entire VM configuration on a LAPTOP on the same network, even so the problems persist and are identical Is your machine in a corporate network? - frequently in such networks there are proxies and additional firewalls It is not a corporate network and there are no firewalls or proxies between the machines or between the Windows machine and the VM. The Oracle VirtualBox is installed on the same development Windows machine. Does your computer have any configured proxies? On the Windows machine there is the default firewall and Antivirus that comes with the Windows installation, but I tested with both disabled and the problem persists. Do you have any firewall rules or an anti-virus program that might be inspecting the traffic? As mentioned previously, even with the standard Windows firewall and antivirus disabled, the problem persists. I do not have any type of firewall or additional antivirus on the development machine The command to start the Chromadb in a server side is: /bin/bash |
@anderatt Can you test with this:
Make sure you have your virtual environment sourced. You can also add timestamp printouts. Chroma recently switched from requests to httpx lib so I wonder if it can be something related to that. |
This is the result test: (venv) PS C:> python -c "import httpx; print(httpx.get('http://192.168.0.5:8000/api/v1/heartbeat').text)" The elapsed time was 28.120 seconds (28 seconds and 120 milliseconds) |
@anderatt, as I suspected the problem may be with the EDIT: When using |
What happened?
I expect the connection between the application and the Chromadb server to occur in every thousandth of a second, but in my case it is around 1:10 (mm:ss)
Versions
Client Side
Server Side
Relevant log output
The text was updated successfully, but these errors were encountered: