This document describes recommended configuration options for operating Flipt in Production.
database/sql client will have MaxOpenConn equal to 0 (unlimited), and MaxIdleConn equal to 2.
With the databases that listen over a network (MySQL, Postgres, CockroachDB), there are default server limits for the number of open connections it supports.
In high burst traffic scenarios, this can lead to the too many open connections error server side.
You should tweak that number to be above 0, and to whatever fits your use case.
This can be altered either via the Flipt configuration file or environment variables:
MaxOpenConn may lead to tuning MaxIdleConn as well.
/debug/pprof) that can be useful for debugging and troubleshooting. However, these endpoints can be a security risk if exposed to the public internet.
You can disable these endpoints by setting the following configuration options: