sqlalchemy.exc.TimeoutError: QueuePool limit of size 10 overflow 10 reached, connection timed out, timeout 30
can not add 'pool_size' to metadata_params{}
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
We've seen a similar issue before, but after some sqlalchemy config tweaks and some db optimizations in flask appbuilder, it went away. Maybe try adding the following to your superset config to fix the issue:
SQLALCHEMY_ENGINE_OPTIONS = {
"max_overflow": 15,
"pool_pre_ping": True,
"pool_recycle": 60 * 60,
"pool_size": 30,
}
We've faced a similar issue before,We have added below parameters in config.py of superset to fix the issue.
SQLALCHEMY_POOL_SIZE=20 SQLALCHEMY_POOL_TIMEOUT=300
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.