question

edgargw22 avatar image
edgargw22 asked

How often to query system for database?

I’m monitoring my system with a RPi and keeping the data with MySql. How often should I query my system? Once a minute? Only when there’s a change from the last query? Thoughts?

Raspberry Pi
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

1 Answer
wkirby avatar image
wkirby answered ·

I read multiple (~20) holding registers every 10 seconds on my system.
On my CerboGX, the modbus service usues 3% CPU on average and the overall doesn't go above 20% CPU on average.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.