How to reconcile this:
which is this item:
with this performance with curl, from the same server:
There is no DNS involved here, going to straight to IPv4. This consistently times out on two different OPNsense hosts, and always returns in <0.5s with curl. This is *at least* 10x longer, and usually 20x.
I've made it work by overriding the master item timeout to 10s, but I am baffled by the difference in performance.
Code:
2990855:20261028:111752.563 error reason for "OPNsense test:opns.raw.firmware.status" changed: Cannot perform request: Operation timed out after 4004 milliseconds with 0 bytes received 2990855:20261028:111752.563 error reason for "OPNsense test:opns.firmware.update.reboot" changed: Cannot perform request: Operation timed out after 4004 milliseconds with 0 bytes received 2990855:20261028:111752.563 error reason for "OPNsense test:opns.firmware.update.status" changed: Cannot perform request: Operation timed out after 4004 milliseconds with 0 bytes received 2990855:20261028:111752.563 error reason for "OPNsense test:opns.firmware.update.status_msg" changed: Cannot perform request: Operation timed out after 4004 milliseconds with 0 bytes received 2990855:20261028:111752.570 error reason for "OPNsense test:opns.firmware.update.count" changed: Cannot perform request: Operation timed out after 4004 milliseconds with 0 bytes received
with this performance with curl, from the same server:
Code:
# time curl -k -u "$key":"$secret" https://firewall-ip:20443/api/core/firmware/status &> /dev/null real 0m0.218s user 0m0.016s sys 0m0.000s
I've made it work by overriding the master item timeout to 10s, but I am baffled by the difference in performance.