New Backend system is now creating one separate database for every backend plugin, and in most of the cases they are not used at all. Only Knex standard tables are created (at least in out case using a Postgres db).
In our Backstage based application we currently have 21 backend plugins, so 21 mostly unused databases.
Additionally, considering that Backend keeps at least one open process per database, we easily reach around 22-23 open processes (one per db plus 1-2 additional) per container, and considering that we run 4 replicas, we reach by default around 90 processes, that increase during processor/provider runs or even in standard usage.
The normal maximum allowed processes in Postgres are 100 so we had already some cases were the limit was reached causing instability, forcing us to increase the limit.
My questions are:
- Is there a reason to open one database per backend plugin?
- Is there a way to set the backend plugin to avoid the db creation/usage (I couldn't find any in documentation nor in code)?
Thanks for all the possible help