Hello,
I have a script which runs every second that monitors bandwidth, then selects which appropriate WAN it should go through based on used bandwidth capacity.
So far it works great. The only issue though is it has a 1-second reaction time between runs. That is, it takes up to 1 second for the switchover to happen.
I tried running it up to 4x per second by looping 4x with a 250ms delay (any lesser and it starts acting erratically), but I found that the bandwidth data itself changes only once per second it seems (via "/interface/monitor-traffic ether1 once" and getting "rx-bits-per-second")
I'm able to rework the system using Traffic Monitor (above and below thresholds), but how fast does that react? Is it able to trigger scripts immediately after it's above/below a threshold? Or does it also have a time delay like 1 second?