Flask-SQLAlchemy and pgpool
- From:
- Alex K
- Date:
- 2011-12-24 @ 08:20
We using Flask-SQLAlchemy extension, and we try first using pgpool &
pgbouncer for postgresql cluster.
in settings:
SQLALCHEMY_POOL_SIZE = 50
SQLALCHEMY_POOL_TIMEOUT = 60
If we turn on pgpool we get errors:
ProcessFrontendResponse: failed to read kind from frontend. frontend
abnormally exited
Maybe we need forcibly close connection to postgresql after each request?
If I understood sqlalchemy using their pool to postgresql and using
existied connections to postgresql and not reopen it before each request?
Anyon encountered this problem?
Thanks!