Home Assistant causing high CPU utilization on USG?

Hi all,

Not sure if anyone else has experienced this:

I’m running Home Assistant Core v109.6 on an Ubuntu 18.04 VM, within VirtualBox on a NUC running Windows 10 (that’s a mouthful…). My network is Ubiquiti Unifi based, with a USG as the main firewall/router. I’ve just noticed recently that my USG has started showing high CPU utilization whenever Home Assistant is running. My research has shown that the offending process on the USG is avahi-daemon, which I know is one of the requirements for Home Assistant.

Anyone ever seen this before? Utilization usually sits between 50-60%, but can jump up to 80-90% randomly. Once I shut off my VM, utilization drops to ~3% or so. Unfortunately, I’m not sure how long this has been the case so not sure if it was due to a USG firmware upgrade, one of the HA builds, or some update on the Ubuntu VM. Any insight would be great

Running into this exact issue today - did you ever solve this?

Not really, though I did migrate my VM off of the NUC and onto a Supermicro server. Currently running the latest version of HA (113.3) and the USG utilization went back down to under 10% (currently sitting at 4%).

Before migrating my installation, I noticed that avahi-daemon deals with multicast and once i disabled mDNS in my Unifi controller, the utilization dropped. However, mDNS is necessary if you have Chromecasts on a separate vlan, so this was not an option for me.

My issue started when I changed my HTPC running the VM with HA from wifi to wired LAN, haven’t been able to rectify the issue, I’ll end up rebuilding the HA VM

May be related to multicast repeater. See here: https://github.com/home-assistant/plugin-multicast/issues/1