Title
#fleet
c

Chris Reisor

12/22/2020, 4:29 PM
We are maxing out the 5351 mysql connections provided by our
db.m4.4xlarge
type host. Is that normal? Why are there so many database connections?
zwass

zwass

12/22/2020, 4:35 PM
How many Fleet servers are running? How many hosts enrolled? You can configure the connection limit with https://github.com/fleetdm/fleet/blob/master/docs/infrastructure/configuring-the-fleet-binary.md#mysql_max_open_conns
c

Chris Reisor

12/22/2020, 4:36 PM
3 replicas. I'll fiddle with
max_open_conns
4:37 PM
no idea how many hosts are enrolled since I can't login 🙂
zwass

zwass

12/22/2020, 4:38 PM
Is it currently set to something above the default (50)?
c

Chris Reisor

12/22/2020, 4:39 PM
5461
(which is higher than
5351
so I guess that's the issue)
zwass

zwass

12/22/2020, 4:39 PM
Ah yes, and that's going to be per server.
c

Chris Reisor

12/22/2020, 4:40 PM
oh, that's a good point!