martimors opened a new issue, #31868:
URL: https://github.com/apache/superset/issues/31868

   ### Bug description
   
   I have performed some load testing on our superset instance, and to my 
surprise, the limiting factor is the number of open database connections. In 
our case, the database is a rather beefy postgresql instance hosted in Azure.
   
   
![Image](https://github.com/user-attachments/assets/fd17657b-ba3d-40b2-a567-a34c49f64072)
   
   I made the load test bombard the following endpoints using Locust:
   - Log in (once per user)
   - List datasets, `api/v1/datasets` (weight 100)
   - Create and delete a chart, `api/v1/chart` (weight 10)
   - Get a data sample for a chart, `api/v1/chart/data` (weight 1, this hits 
DataBricks)
   
   After some time, the console gets spammed with errors from `sqlalchemy` that 
the connection pool is full.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.1
   
   ### Python version
   
   I don't know
   
   ### Node version
   
   I don't know
   
   ### Browser
   
   Not applicable
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to