#How large trace history I could store?

1 messages · Page 1 of 1 (latest)

fair lotus
#

I'm running on Raspberry Pi 5 on MicroSD so I need to restrict the amount of history for performance reasons. I have now 74 automations which is going to grow. Some of then run based on events and some might be running for example once per hour. Hence, for debugging and improvement storing more than 5 traces in history would be needed.

How large I could go with my setup without harming the performance too much. Could I store for example 48 traces for each automation safely? It shouldn't be a lot of storage but that might not be the only issue as I don't know how HA is actually handling the traces. Any experience or recommendations? I could of course grow slowly but I would prefer storing a lot of them and start with something which is expected to work.

fickle vine
#

Al in al it doesn't really matter and traces will be the lesser issue compared to states. In the end you will kill that SD-card in a couple of weeks to maybe months...

If you want to have a long term stable system, switch to an SSD.

fair lotus
#

I've been thinking about SSD but I have Hailo HAT taking the connector. I'm running Frigate. I might consider moving Frigate and Hailo to another system though and then switch to SSD.

fickle vine
#

You could use USB SSD as well. Already wayyyyy better then SD. Frigate will do quite some writing as well.

fair lotus
#

That might be my solution then. I didn't know USB SSD would be even supported as boot media or stable and recommended. I need to do this to all of my HA setups then 🙂 I have some experience on killing SD cards already.

fickle vine
#

From the top of my head it was introduced with RPi3. But 3 and 4 need the newest firmware. All RPi5 should support it from the factory. Ran my RPi4 with HA for quite some time before I switched to my N100.

vagrant apex
tranquil eagle
#

If possible, power SSD from powered USB Hub.

fickle vine
#

In my experience it's not needed to use a power USB hub if you use a good (read: official) power supply and use a external SSD with a SATA disk. They don't use that much power.

tranquil eagle
#

@fickle vine Normally, with not to much usb connected, yes absolutely. It's just for preventing issues when psu is not original or faulty, or just too much power is drawn, wich can happen ofc.