any time I make a new label my DB writer instance ...
# fleet
j
any time I make a new label my DB writer instance blows up, and then my FleetDM instances run out of memory and die. This happens even when using a db.r5.24xlarge with 48 cores, 96 vCPU, and 768G memory. We have ~162000 hosts enrolled, so I'm guessing that's why the DB operation for adding a label is so intensive. Eventually the DB finishes the operation, and we can restart all our FleetDM instances, and things work again, but it's obviously not an optimal experience.
😮 2
t
yeah, that's not ideal. also we need to tweak seen times
I'll investigate
j
I added the label right after 19:40
t
do you add it through the UI?
j
yes
does it make a difference?
t
it goes through one code path, while the fleetctl one goes another
j
interesting. once the DB recovers from this label, I'll try the next one via fleetctl
t
well, from that second screenshot, the apply itself might not matter
once the hosts get the labels, they return the value and that gets recorded. So we record 162k label executions. I'm guessing that's what's blowing up the db. We'll look into this