mistercrunch opened a new pull request, #31315: URL: https://github.com/apache/superset/pull/31315
The number of connection to the metadata database, in our case postgres, is limited, and when we have a lot of pods autoscale, at some point we can hit the maximum postgres connection, upon which point new pods/request can't get a new connection. This PR add a new feature flag (false by default) DISABLE_METADATA_DB_DURING_ANALYTICS, that uses a context manager to disconnect and reconnect to the database during long blocking operations, like waiting for an analytics query to return a result. This works only in conjunction with NullPool for now, but could be extended to work with various pool configurations. It's a no-op with the default feature flag. -- 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]
