Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement statistic for iproto streams and remove in from errinj #6293

Closed
EvgenyMekhanik opened this issue Aug 5, 2021 · 1 comment · Fixed by #6402
Closed

Implement statistic for iproto streams and remove in from errinj #6293

EvgenyMekhanik opened this issue Aug 5, 2021 · 1 comment · Fixed by #6402
Assignees
Labels
feature A new functionality
Milestone

Comments

@EvgenyMekhanik
Copy link
Contributor

  1. At this moment, statistics on the number of streams and messages in streams are collected only for test purposes and stored in errinj to check that there is no memory leak in streams. Discuss what statistics are needed for streams, add it and remove statistics for streams from errinj.
  2. Also at this moment we use errinj to collect iproto statistic per thread for test purpose. We store in errinj thread
    number, which determine for what thread we want to get statistic. May be in this issue discuss and resolve it in other way.
@EvgenyMekhanik EvgenyMekhanik added feature A new functionality incoming labels Aug 5, 2021
@EvgenyMekhanik EvgenyMekhanik self-assigned this Aug 5, 2021
@kyukhin kyukhin added teamC and removed incoming labels Aug 13, 2021
@alyapunov alyapunov added the 3sp label Aug 13, 2021
@kyukhin kyukhin added this to the 2.10.1 milestone Aug 19, 2021
@kyukhin kyukhin added the in design Requires design document label Aug 20, 2021
@unera
Copy link
Collaborator

unera commented Aug 24, 2021

Let's add the key STREAMS into box.stat.net:

STREAMS:
   active: 12
   requests:
        total: 123
        rps: 2    # last 5 second
   
   threads:
   - active: 12  # count of active streams
     requests:
        total: 123
        rps: 2    # last 5 second
   - active: 0
     requests:
         total: 0
         rps: 0

@unera unera removed the in design Requires design document label Aug 25, 2021
EvgenyMekhanik added a commit that referenced this issue Aug 25, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293
EvgenyMekhanik added a commit that referenced this issue Aug 25, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293
EvgenyMekhanik added a commit that referenced this issue Aug 25, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293
EvgenyMekhanik added a commit that referenced this issue Aug 26, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293
EvgenyMekhanik added a commit that referenced this issue Aug 26, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps and total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Aug 26, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps and total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps and total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at
the moment he can get only general statistics, which combines
statistics for all threads. Now getting network statistic per
thread was implemented. For example if user run three iproto
threads `SEND` metric for network statistic:
SENT:
  threads:
    - total: 0
      rps: 0
    - total: 0
      rps: 0
    - total: 48452
      rps: 5795
  rps: 5795
  total: 48452

`threads` metric was added, it contains statistics per thread.
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps, total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at
the moment he can get only general statistics, which combines
statistics for all threads. Now getting network statistic per
thread was implemented. For example if user run three iproto
threads `SEND` metric for network statistic:
SENT:
  threads:
    - total: 0
      rps: 0
    - total: 0
      rps: 0
    - total: 48452
      rps: 5795
  rps: 5795
  total: 48452

`threads` metric was added, it contains statistics per thread.
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps, total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at
the moment he can get only general statistics, which combines
statistics for all threads. Now getting network statistic per
thread was implemented. For example if user run three iproto
threads `SEND` metric for network statistic:
SENT:
  threads:
    - total: 0
      rps: 0
    - total: 0
      rps: 0
    - total: 48452
      rps: 5795
  rps: 5795
  total: 48452

`threads` metric was added, it contains statistics per thread.
EvgenyMekhanik added a commit that referenced this issue Aug 27, 2021
…at.net`

Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps, total and threads. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
  threads:
   total: 0
   rps: 0
   total: 112623
   rps: 17980
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread. In this patch
`box.stat.net.thread` was implemented, it can be used for getting
same statistics as from `box.stat.net` but per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at the moment
he can get only general statistics, which combines statistics for all
threads. Now `box.stat.net.thread` was implemented for getting same
statistics as when using `box.stat.net` but per thread. User can called
it as a function `box.stat.net.thread()` for getting common network
statistic per thread. For example for two iproto threads:
---
- - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
  - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
...

Also user can indexed it as a table by  thread number. For example
`box.stat.net.thread[1]` returns network statistic for first iproto
thread:
---
- SENT:
    total: 0
    rps: 0
  CONNECTIONS:
    current: 0
    rps: 0
    total: 0
  REQUESTS:
    current: 0
    rps: 0
    total: 0
  RECEIVED:
    total: 0
    rps: 0
...
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps and total. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread. In this patch
`box.stat.net.thread` was implemented, it can be used for getting
same statistics as from `box.stat.net` but per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at the moment
he can get only general statistics, which combines statistics for all
threads. Now `box.stat.net.thread` was implemented for getting same
statistics as when using `box.stat.net` but per thread. User can called
it as a function `box.stat.net.thread()` for getting common network
statistic per thread. For example for two iproto threads:
---
- - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
  - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
...

Also user can indexed it as a table by  thread number. For example
`box.stat.net.thread[1]` returns network statistic for first iproto
thread:
---
- SENT:
    total: 0
    rps: 0
  CONNECTIONS:
    current: 0
    rps: 0
    total: 0
  REQUESTS:
    current: 0
    rps: 0
    total: 0
  RECEIVED:
    total: 0
    rps: 0
...
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as other metrics
in `box.stat.net`: current, rps and total. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as `CONNECTIONS`
metric in `box.stat.net`: current, rps and total. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently getting iproto statistics per thread is possible only
in debug mode, using `ERRINJ_IPROTO_SINGLE_THREAD_STAT` (it can be
used only in tests). This way have several disadvantages: first of
all `errinj` is not a place to get statistics, secondly user may be
interested in getting iproto statistics per thread. In this patch
`box.stat.net.thread` was implemented, it can be used for getting
same statistics as from `box.stat.net` but per thread.

Part of #6293

@TarantoolBot document
Title: getting network statistic per thread was implemented
User has possibility to run several iproto threads, but at the moment
he can get only general statistics, which combines statistics for all
threads. Now `box.stat.net.thread` was implemented for getting same
statistics as when using `box.stat.net` but per thread. User can called
it as a function `box.stat.net.thread()` for getting common network
statistic per thread. For example for two iproto threads:
---
- - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
  - SENT:
      total: 0
      rps: 0
    CONNECTIONS:
      current: 0
      rps: 0
      total: 0
    REQUESTS:
      current: 0
      rps: 0
      total: 0
    RECEIVED:
      total: 0
      rps: 0
...

Also user can indexed it as a table by  thread number. For example
`box.stat.net.thread[1]` returns network statistic for first iproto
thread:
---
- SENT:
    total: 0
    rps: 0
  CONNECTIONS:
    current: 0
    rps: 0
    total: 0
  REQUESTS:
    current: 0
    rps: 0
    total: 0
  RECEIVED:
    total: 0
    rps: 0
...
EvgenyMekhanik added a commit that referenced this issue Sep 2, 2021
Currently there are several statistic metrics for iproto, which can
be obtained by using `box.stat.net`: `CONNECTIONS`, `REQUESTS`, `SENT`
and `RECEIVED`. Add new metric `STREAMS` which contain statistics for
iproto streams.

Closes #6293

Title: getting statistics for iproto streams was implemented
Add new  metric `STREAMS` to `box.stat.net`, which contain statistics
for iproto streams. `STREAMS` contains same counters as `CONNECTIONS`
metric in `box.stat.net`: current, rps and total. For example:
STREAMS:
  current: 0
  rps: 17980
  totat: 112623
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 17, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).

Closes #6293

@TarantoolBot document
Title: getting statistics for queues of iproto streams was implemented
Add new  metric `STREAM_QUEUE_MAX` to `box.stat.net`. This metric
contains two counters `current` (displays the current length of the
longest stream queue) and `total` (displays the maximal length of
the stream queue for all time).
```
STREAM_QUEUE_MAX
   current: -- current length of the longest stream queue
   total: -- maximal length of the stream queue for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 27, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
EvgenyMekhanik added a commit that referenced this issue Sep 28, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
Korablev77 pushed a commit that referenced this issue Sep 30, 2021
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.

Part of #6293

@TarantoolBot document
Title: detailed iproto requests statistics was implemented
Add new  metrics `REQUESTS_IN_PROGRESS` and `REQUESTS_IN_STREAM_QUEUE`
to `box.stat.net`, which contain detailed statistics for iproto requests.
These metrics contains same counters as other metrics in `box.stat.net`:
current, rps and total.
```
-- statistics for requests currently being processed in tx thread.
REQUESTS_IN_PROGRESS:
current: -- count of requests currently being processed in the tx thread
rps: -- count of requests processed by the tx thread per second
total: -- total count of requests processed by tx thread

-- statistics for requests placed in queues of streams.
REQUESTS_IN_STREAM_QUEUE:
current: -- count of requests currently waiting in queues of streams
rps: -- count of requests placed in streams queues per second
total: -- total count of requests, which was placed in queues of streams
          for all time
```
locker added a commit to locker/tarantool that referenced this issue Mar 13, 2023
The test checks that the number of IPROTO requests handled by a test
server is reported correctly in statistics. Since a net.box connection
sends a few "service" requests (e.g. to fetch schema), the test excludes
them from the total count. The problem is this doesn't always work with
service requests sent to enable graceful shutdown.

To enable graceful shutdown a client sends an IPROTO_WATCH request.
The server replies to the client with IPROTO_EVENT. Upon receiving
the event, the client sends another IPROTO_WATCH request to ack it.
The whole procedure is fully asynchronous, which means it may finish
after we start processing user requests over the connection.

To correctly account service requests, let's disable this feature.

Closes tarantool/tarantool-qa#269

NO_DOC=test fix
NO_CHANGELOG=test fix
locker added a commit that referenced this issue Mar 13, 2023
The test checks that the number of IPROTO requests handled by a test
server is reported correctly in statistics. Since a net.box connection
sends a few "service" requests (e.g. to fetch schema), the test excludes
them from the total count. The problem is this doesn't always work with
service requests sent to enable graceful shutdown.

To enable graceful shutdown a client sends an IPROTO_WATCH request.
The server replies to the client with IPROTO_EVENT. Upon receiving
the event, the client sends another IPROTO_WATCH request to ack it.
The whole procedure is fully asynchronous, which means it may finish
after we start processing user requests over the connection.

To correctly account service requests, let's disable this feature.

Closes tarantool/tarantool-qa#269

NO_DOC=test fix
NO_CHANGELOG=test fix
locker added a commit that referenced this issue Mar 13, 2023
The test checks that the number of IPROTO requests handled by a test
server is reported correctly in statistics. Since a net.box connection
sends a few "service" requests (e.g. to fetch schema), the test excludes
them from the total count. The problem is this doesn't always work with
service requests sent to enable graceful shutdown.

To enable graceful shutdown a client sends an IPROTO_WATCH request.
The server replies to the client with IPROTO_EVENT. Upon receiving
the event, the client sends another IPROTO_WATCH request to ack it.
The whole procedure is fully asynchronous, which means it may finish
after we start processing user requests over the connection.

To correctly account service requests, let's disable this feature.

Closes tarantool/tarantool-qa#269

NO_DOC=test fix
NO_CHANGELOG=test fix

(cherry picked from commit 4e9bffc)
locker added a commit that referenced this issue Mar 13, 2023
The test checks that the number of IPROTO requests handled by a test
server is reported correctly in statistics. Since a net.box connection
sends a few "service" requests (e.g. to fetch schema), the test excludes
them from the total count. The problem is this doesn't always work with
service requests sent to enable graceful shutdown.

To enable graceful shutdown a client sends an IPROTO_WATCH request.
The server replies to the client with IPROTO_EVENT. Upon receiving
the event, the client sends another IPROTO_WATCH request to ack it.
The whole procedure is fully asynchronous, which means it may finish
after we start processing user requests over the connection.

To correctly account service requests, let's disable this feature.

Closes tarantool/tarantool-qa#269

NO_DOC=test fix
NO_CHANGELOG=test fix

(cherry picked from commit 4e9bffc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants