superset icon indicating copy to clipboard operation
superset copied to clipboard

sqlalchemy.exc.TimeoutError: QueuePool limit of size 10 overflow 10 reached, connection timed out, timeout 30

Open qinzl1 opened this issue 7 years ago • 4 comments

can not add 'pool_size' to metadata_params{}

qinzl1 avatar Sep 10 '19 01:09 qinzl1

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.

issue-label-bot[bot] avatar Sep 10 '19 01:09 issue-label-bot[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,
}

etr2460 avatar Sep 10 '19 18:09 etr2460

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

swapnil-chenoa avatar Sep 30 '19 07:09 swapnil-chenoa

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.

stale[bot] avatar Nov 29 '19 08:11 stale[bot]