Open gustavobini opened 4 months ago
Same behavior, same version here. Number of scopes is 1100+
In my local env with the main branch's codes with MySQL 8.x,I created a GitHub conenction with 100+ scopes,
and I can open the connection details successfully with limited time.
There is an issue that scope's details are fetched seperately, it will create 100+ requests at the same time, which I think could be improved.
As to the errors "cannot assign requested address" in your backend log, considering you are using docker, I think it's some limilations in docker, can you have a try at this https://stackoverflow.com/questions/66233698/cannot-assign-requested-address-localhostxxxx-docker-linux-containers ?
@talfirevic what's your environment ?
As to the errors "cannot assign requested address" in your backend log, considering you are using docker, I think it's some limilations in docker, can you have a try at this https://stackoverflow.com/questions/66233698/cannot-assign-requested-address-localhostxxxx-docker-linux-containers ?
@d4x1 this is not running in Docker. It's in a GKE cluster and the database request goes through a cloud-sql-proxy sidecar. However, I will also look into this once I'm back from work vacation.
There is an issue that scope's details are fetched seperately, it will create 100+ requests at the same time, which I think could be improved.
Yes, this is the solution I was looking for from opening this issue. From a brief look, this seems to be handled by the code framework though, so doesn't seem that simple.
@d4x1 I fixed this by increasing the resources of the cloud-sql-proxy sidecar container. However, I still think it's valid to improve the way data is fetched.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
Search before asking
What happened
I have a Devlake project with a Jenkins connection configured with 91 data scopes.
When I click on Edit Data Scope and Scope Config, navigating to https:///projects//, the page never stops showing the loading screen.
Upon inspecting the network requests, the page sends a total of 95 requests at once. The response times are from a couple of milliseconds to a minute (timed out by the load balancer). Most of the requests fail with a 500 status code.
On the API logs, there are several connection errors to the database.
Some notes:
What do you expect to happen
I expected the page to load the data.
How to reproduce
Anything else
I initially noticed this problem with https://github.com/apache/incubator-devlake/releases/tag/v1.0.0-beta5 as I wanted to use the Jenkins multi-branch workflows, but even after reverting to https://github.com/apache/incubator-devlake/releases/tag/v1.0.0-beta1 the problem persists.
Version
v1.0.0-beta5
Are you willing to submit PR?
Code of Conduct