On 2024/11/27 12:51, Laurence Tratt wrote: > On Tue, Nov 26, 2024 at 03:56:48PM +0000, Stuart Henderson wrote: > > Hello Stuart, > > > Attached. This sees my zzh ok and things look good - I don't have any > > devices handy that I can hook up to it to test at the moment (I don't > > really want to start taking my ikea setup to pieces just to test ;) > > One minor thing: I wonder if suggesting mosquitto in `pkg/DESCR` is the > right thing on OpenBSD? > > There is a very long-standing bug (I first experienced it a few years back, > and it's still present as of a week or two back) on some platforms, > including OpenBSD, where mosquitto uses 100% CPU when clients disconnect > [1]. It baffled me for ages! > > Personally, as someone experimenting with zigbee2mqtt in the last couple of > weeks, I switched to rabbitmq, which seems to have no such issues. > > > Laurie > > [1] https://github.com/eclipse-mosquitto/mosquitto/issues/2807 >
Interesting, I've been running mosquitto since at least 2022 and so far bit's been behaving itself quite well. I'm sure there are much busier instances but I do have various things feeding into it (GLOW-IHD-01-1v4-SMETS2 for meter readings, and a couple of esp32-wroom-32 boards running esphome feeding in BLE advertisements from various xiaomi temp/humidity sensors running pvvx/ATC_MiThermometer plus reporting on other BLE devices heard nearby), and on the listener side there's hass and occasionally I run mosquitto_sub to see what's going on. ~150 messages/sec or so? Interested to know if there's anything different with your config, mine is quite simple. # grep -v '^#' mosquitto.conf|grep -v '^$' user _mosquitto listener 1883 10.15.5.2 listener 1883 127.0.0.1 autosave_interval 60 persistence true persistence_file mosquitto.db persistence_location /var/db/mosquitto log_dest syslog log_type all connection_messages true allow_anonymous true password_file /etc/mosquitto/mosquitto.pass