The default value for max_connections in sqlx is 10. From some testing, our number of DB connections per indexer can go up to ~6 and so, running fuel-indexer with more than one indexer could lead to failures.
This PR sets the default to 100 and adds a CLI flag to modify it.
Also, a warning will be issued if the set config value exceeds what is set in the backend.
Description
Fixes #1507.
The default value for
max_connections
insqlx
is10
. From some testing, our number of DB connections per indexer can go up to ~6 and so, runningfuel-indexer
with more than one indexer could lead to failures.This PR sets the default to
100
and adds a CLI flag to modify it.Also, a warning will be issued if the set config value exceeds what is set in the backend.
Testing steps
Should succeed.
Example: with --num-additional-indexers 10
we get up to
43` connectionsChangelog
sqlx
parameter