QueuePool limit of size 5 overflow 10 reached
Posted: Mon Apr 17, 2023 8:02 am
Sometimes users are unable to log in, and I get a lot of these messages in openvpnas.log
I'm guessing this is caused by a sudden burst of login attempts, though a limit of 5 connections to the db seems a bit restrictive. Is it possible to increase this number, for example in as.conf?
Code: Select all
2023-04-17T09:32:05+0200 [stdout#info] VPN Auth Failed: 'QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30 (Background on this error at: http://sqlalche.me/e/13/3o7r): omi/auth:551,omi/auth:596,util/delegate:27,db/db:1643,db/dbretry:52,db/dbretry:50,db/db:1643,db/db:1593,db/db:1041,orm/query:3429,orm/query:3203,orm/query:3535,orm/query:3557,orm/query:3572,orm/query:3550,orm/session:1145,orm/session:1151,orm/session:433,engine/base:2302,engine/base:2336,pool/base:364,pool/base:778,pool/base:495,pool/impl:132 (sqlalchemy.exc.TimeoutError)' [None]