Closed lostman closed 5 months ago
We can periodically query Postgresql to see the number of active connections.
We had issuers related to too many connections before when I was benchmarking metering points, and lately: https://github.com/FuelLabs/fuel-indexer/issues/1430
psql -c "SELECT count(*) FROM pg_stat_activity WHERE state = 'active';" count ------- 4 (1 row)
@lostman
I think so. If it raises linearly with the number of indexers then there's an improvement to be made somewhere.
Description
We can periodically query Postgresql to see the number of active connections.
We had issuers related to too many connections before when I was benchmarking metering points, and lately: https://github.com/FuelLabs/fuel-indexer/issues/1430