box.stat.net()
-
box.stat.
net
()¶ Shows network activity: the number of bytes sent and received, the number of connections, streams, and requests (current, average, and total).
Return: in the tables that
box.stat.net()
returns:SENT.rps
andRECEIVED.rps
– average number of bytes sent/received per second in the last 5 secondsSENT.total
andRECEIVED.total
– total number of bytes sent/received since the server startedCONNECTIONS.current
– number of open connectionsCONNECTIONS.rps
– average number of connections opened per second in the last 5 secondsCONNECTIONS.total
– total number of connections opened since the server startedREQUESTS.current
– number of requests in progress, which can be limited by box.cfg.net_msg_maxREQUESTS.rps
– average number of requests processed per second in the last 5 secondsREQUESTS.total
– total number of requests processed since the server startedREQUESTS_IN_PROGRESS.current
– number of requests being currently processed by the TX threadREQUESTS_IN_PROGRESS.rps
– average number of requests processed by the TX thread per second in the last 5 secondsREQUESTS_IN_PROGRESS.total
– total number of requests processed by the TX thread since the server startedSTREAMS.current
– number of active streamsSTREAMS.rps
– average number of streams opened per second in the last 5 secondsSTREAMS.total
– total number of streams opened since the server startedREQUESTS_IN_STREAM_QUEUE.current
– number of requests waiting in stream queuesREQUESTS_IN_STREAM_QUEUE.rps
– average number of requests in stream queues per second in the last 5 secondsREQUESTS_IN_STREAM_QUEUE.total
– total number of requests placed in stream queues since the server started
Example:
tarantool> box.stat.net() -- 5 tables --- - CONNECTIONS: current: 1 rps: 0 total: 1 REQUESTS: current: 0 rps: 0 total: 8 REQUESTS_IN_PROGRESS: current: 0 rps: 0 total: 7 SENT: total: 19579 rps: 0 REQUESTS_IN_STREAM_QUEUE: current: 0 rps: 0 total: 0 STREAMS: current: 0 rps: 0 total: 0 RECEIVED: total: 197 rps ...
-
net.
thread
()¶ Shows network activity per network thread: the number of bytes sent and received, the number of connections, streams, and requests (current, average, and total).
When called with an index (
box.stat.net.thread[1]
), shows network statistics for a single network thread.Return: Same network activity metrics as box.stat.net() for each network thread Example:
tarantool> box.stat.net.thread() -- iproto_threads = 2 - - CONNECTIONS: current: 0 rps: 0 total: 0 REQUESTS: current: 0 rps: 0 total: 0 REQUESTS_IN_PROGRESS: current: 0 rps: 0 total: 0 SENT: total: 0 rps: 0 REQUESTS_IN_STREAM_QUEUE: current: 0 rps: 0 total: 0 STREAMS: current: 0 rps: 0 total: 0 RECEIVED: total: 0 rps: 0 - CONNECTIONS: current: 1 rps: 0 total: 1 REQUESTS: current: 0 rps: 0 total: 8 REQUESTS_IN_PROGRESS: current: 0 rps: 0 total: 7 SENT: total: 19579 rps: 0 REQUESTS_IN_STREAM_QUEUE: current: 0 rps: 0 total: 0 STREAMS: current: 0 rps: 0 total: 0 RECEIVED: total: 197 rps: 0 ...
tarantool> box.stat.net.thread[1] -- first network thread - - CONNECTIONS: current: 1 rps: 0 total: 1 REQUESTS: current: 0 rps: 0 total: 8 REQUESTS_IN_PROGRESS: current: 0 rps: 0 total: 7 SENT: total: 19579 rps: 0 REQUESTS_IN_STREAM_QUEUE: current: 0 rps: 0 total: 0 STREAMS: current: 0 rps: 0 total: 0 RECEIVED: total: 197 rps: 0 ...