Skip to content

Commit ed62743

Browse files
p7novpatiencedaur
andauthored
Add new net stats for streams and requests (#2887)
Fixes #2420 #2413 Co-authored-by: Patience Daur <[email protected]>
1 parent 8253924 commit ed62743

File tree

1 file changed

+31
-8
lines changed
  • doc/reference/reference_lua/box_stat

1 file changed

+31
-8
lines changed

doc/reference/reference_lua/box_stat/net.rst

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ box.stat.net()
66
.. function:: net()
77

88
Shows network activity: the number of bytes sent
9-
and received, the number of connections, and the number of active requests
9+
and received, the number of connections, streams, and requests
1010
(current, average, and total).
1111

1212
:return: in the tables that ``box.stat.net()`` returns:
@@ -15,27 +15,50 @@ box.stat.net()
1515
second in the last 5 seconds
1616
* ``SENT.total`` and ``RECEIVED.total`` -- total number of bytes sent/received
1717
since the server started
18-
* ``CONNECTIONS.rps`` -- number of connections opened per second in the last 5 seconds
18+
* ``CONNECTIONS.current`` -- number of open connections
19+
* ``CONNECTIONS.rps`` -- average number of connections opened per second in the last 5 seconds
1920
* ``CONNECTIONS.total`` -- total number of connections opened since the server started
2021
* ``REQUESTS.current`` -- number of requests in progress, which can be
2122
limited by :ref:`box.cfg.net_msg_max <cfg_networking-net_msg_max>`
22-
* ``REQUESTS.rps`` -- number of requests processed per second in the last 5 seconds
23-
* ``REQUESTS.total`` -- total number of requests processed since startup
23+
* ``REQUESTS.rps`` -- average number of requests processed per second in the last 5 seconds
24+
* ``REQUESTS.total`` -- total number of requests processed since the server started
25+
* ``REQUESTS_IN_PROGRESS.current`` -- number of requests being currently processed by the :ref:`TX thread <memtx-memory>`
26+
* ``REQUESTS_IN_PROGRESS.rps`` -- average number of requests processed by the TX thread per second in the last 5 seconds
27+
* ``REQUESTS_IN_PROGRESS.total`` -- total number of requests processed by the TX thread since the server started
28+
* ``STREAMS.current`` -- number of active :doc:`streams </book/box/stream>`
29+
* ``STREAMS.rps`` -- average number of streams opened per second in the last 5 seconds
30+
* ``STREAMS.total`` -- total number of streams opened since the server started
31+
* ``REQUESTS_IN_STREAM_QUEUE.current`` -- number of requests waiting in stream queues
32+
* ``REQUESTS_IN_STREAM_QUEUE.rps`` -- average number of requests in stream queues per second in the last 5 seconds
33+
* ``REQUESTS_IN_STREAM_QUEUE.total`` -- total number of requests placed in stream queues since the server started
34+
2435

2536
**Example:**
2637

2738
.. code-block:: tarantoolsession
2839
29-
tarantool> box.stat.net() -- 4 tables
40+
tarantool> box.stat.net() -- 5 tables
3041
---
31-
- SENT:
42+
- CONNECTIONS:
43+
current: 0
44+
rps: 0
45+
total: 0
46+
REQUESTS:
47+
current: 0
48+
rps: 0
49+
total: 0
50+
REQUESTS_IN_PROGRESS:
51+
current: 0
52+
rps: 0
53+
total: 0
54+
SENT:
3255
total: 0
3356
rps: 0
34-
CONNECTIONS:
57+
REQUESTS_IN_STREAM_QUEUE:
3558
current: 0
3659
rps: 0
3760
total: 0
38-
REQUESTS:
61+
STREAMS:
3962
current: 0
4063
rps: 0
4164
total: 0

0 commit comments

Comments
 (0)