Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectionPoolSize/connectionPoolMaxOverflow for engine-upgrade job #221

Open
zlugo opened this issue Oct 17, 2022 · 0 comments
Open

connectionPoolSize/connectionPoolMaxOverflow for engine-upgrade job #221

zlugo opened this issue Oct 17, 2022 · 0 comments

Comments

@zlugo
Copy link

zlugo commented Oct 17, 2022

Hi, I am trying to use Anchore with a PostgreSQL database that does not support lots of open connections.
Therefore I've decreased the dbConfig.connectionPoolSize and dbConfig.connectionPoolMaxOverflow values which works very well in general and avoids exhausting the available database connections.

However, the pods created for the engine-upgrade job don't take up these values. Instead the logs show the default values for both the pool size and the max overflow, e.g.:
[MainThread] [anchore_manager.util.db/connect_database()] [INFO] DB params: {"db_connect_args": {"connect_timeout": 86400}, "db_pool_size": 30, "db_pool_max_overflow": 100}

I assume this is the reason the engine-upgrade pods are crashing with
[MainThread] [anchore_manager.util.logging/log_error()] [ERROR] Error: DB connection failed - exception: %stest connection failed - exception: (psycopg2.OperationalError) FATAL: remaining connection slots are reserved for non-replication superuser connections

Is there a way to make this work, i.e. by mapping the config-volume the same way as it is done in e.g. the api_deployment.yaml?

HN23 added a commit that referenced this issue May 31, 2024
* bumping feeds chart image
* updating chart postgres dep to latest minor version, update readme and tests

Signed-off-by: Hung Nguyen <[email protected]>

---------

Signed-off-by: Hung Nguyen <[email protected]>
Btodhunter pushed a commit that referenced this issue May 31, 2024
* bumping feeds chart image (#221)

* bumping feeds chart image
* updating chart postgres dep to latest minor version, update tests
* update README.md

---------

Signed-off-by: Hung Nguyen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant