@@ -6,7 +6,7 @@ box.stat.net()
6
6
.. function :: net()
7
7
8
8
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
10
10
(current, average, and total).
11
11
12
12
:return: in the tables that ``box.stat.net() `` returns:
@@ -15,27 +15,50 @@ box.stat.net()
15
15
second in the last 5 seconds
16
16
* ``SENT.total `` and ``RECEIVED.total `` -- total number of bytes sent/received
17
17
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
19
20
* ``CONNECTIONS.total `` -- total number of connections opened since the server started
20
21
* ``REQUESTS.current `` -- number of requests in progress, which can be
21
22
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
+
24
35
25
36
**Example: **
26
37
27
38
.. code-block :: tarantoolsession
28
39
29
- tarantool> box.stat.net() -- 4 tables
40
+ tarantool> box.stat.net() -- 5 tables
30
41
---
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:
32
55
total: 0
33
56
rps: 0
34
- CONNECTIONS :
57
+ REQUESTS_IN_STREAM_QUEUE :
35
58
current: 0
36
59
rps: 0
37
60
total: 0
38
- REQUESTS :
61
+ STREAMS :
39
62
current: 0
40
63
rps: 0
41
64
total: 0
0 commit comments