Monitoring avg. response time calculation
When doing monitoring with mapbender with a lot of services, there is an issue in the way the avg response times are gathered. They begin of the monitoring process is written to the db at once for all services. Then the real monitoring requests for each wms after another are sent and after each one is finished, the end is written to the db. So the first wms essentially have seconds response time while the last, depending on how many wms you have, can reach 100 sec.
Change History
(6)
Priority: |
minor → blocker
|
Priority: |
blocker → major
|
Owner: |
changed from mapbender_dev@… to mschulz
|
Milestone: |
2.7 release → 2.8 release
|
Milestone: |
2.7.1 release → future
|
A pretty simple fix for that could be to change lines 186-188 in function updateInDb (class_monitor.php) like that:
Then when a Monitor object is created, the time is stored in timestamp, when the db gets updated timestamp_end is filled with time().