TWSD-339 We need Realtime and historic "Average Server connection RTT" graph and reports in PDF & CSV
Review Request #900 — Created June 3, 2025 and submitted — Latest diff uploaded
| Information | |
|---|---|
| jasonchang | |
| APV10 | |
| rel_apv_10_7 | |
| Reviewers | |
| mingji, shuinvy, timsu | |
Add a CLI command to display the average connection count over a specified time period between the APV and each server. This information should be included under the statistics section for each individual SLB real server.
A data structure, uint64_t srv_bandwidth_conn[SLB_MAX_BANDWIDTH_STAT_THRESHOLD], is used to record connection counts over the most recent 20 seconds.
The counter is incremented whenever a new connection is established. Connection counts from all threads are aggregated and averaged over the time period to compute the average connection rate.
Finally, a message is printed to report this average.
Result:
AN(config)#show statistics slb real http http_server_2
Real service http_server_2 172.20.0.192 8888 UP ACTIVE
First hit after RS active: 2025/06/03 - 09:25:25
Main health check: 172.20.0.192 8888 tcp UP
Max Conn Count: 0
Current Connection Count: 197
Average Connection Count: 1157 <----
Outstanding Request Count: 197
Total Hits: 66267
Total Bytes In: 49965920
Total Bytes Out: 23477497
Total Packets In: 264530
Total Packets Out: 207860
Average Bandwidth In: 7483 Kbps
Average Bandwidth Out: 3514 Kbps
Average Response time: 70.484 ms
Average Packets In Rate: 5070 pps
Average Packets Out Rate: 3976 pps
HTTP response code stats
HTTP response code 200: 66070
