Luc,
It's not weewx increasing in CPU usage, it's the CPU usage for
mariadb. Check on your Synology NAS.
Maybe it's not the same for yours, but I found this occurring in mine.
Worked in 3.9.2, failed in weewx 4.0.06b where it sent the CPU through
the roof, with the reports failing in the same manner as yours.
I assumed mariadb had become a choke point, commenting it out (as
you've done) brought things back to 'normal'.
In fact, looking through my skin.conf shows the note I've left myself.
I see this.
[[[daywindvec]]]
#-# see note below
#-# aggregate_interval = 300
[[[[windvec]]]]
label = Wind Vector (5 min avg.)
plot_type = vector
aggregate_type = avg
aggregate_interval = 300
#[[[[windgustvec]]]]
# label = Gust Wind
# plot_type = vector
###aggregate_type = max
#-# mysqld goes through the roof if this is enabled
#-# aggregate_interval = 300
Obviously I haven't got back to it. Life (and fires) have a knack of
getting in the way sometimes.
Okay, Quick test here:
CPU for mysqld with no report thread running 0.2%
CPU for mysqld with the (seasons) skin.conf as above 16.2%
Now...
Uncommenting those entries (windgustvec) sends CPU to 163% (114%, 133%
155% etc) mysqld is seriously struggling with it. I have to revert
those changes and restart mysqld to get it back down again.
Taking it a little further it's the, not the 'aggregate_interval =
300' that sets it off it's the 'aggregate_type = max '
Changing that to 'aggregate_type = avg' and it's okay, commenting it
out completely is also okay.
Leaving it uncommented (activated) is poison.
Wait for an archive cycle in this high usage state and the CPU is
still maxed out and my wee_reports fail to cycle. That means that with
my quirky setup it's still running and hasn't finished or been reaped.
Interestingly, when I restart weewx that separate wee_report instance
completes.
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
weewx-developm...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/weewx-development/a652d38c-0ed1-4171-9510-5ac601336362%40googlegroups.com.