Skip to content

[2pt] getting network statistic per thread was implemented #2421

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

Closed
Tracked by #2589
Totktonada opened this issue Nov 9, 2021 · 0 comments · Fixed by #2893
Closed
Tracked by #2589

[2pt] getting network statistic per thread was implemented #2421

Totktonada opened this issue Nov 9, 2021 · 0 comments · Fixed by #2893
Assignees
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Milestone

Comments

@Totktonada
Copy link
Member

Totktonada commented Nov 9, 2021

Product: Tarantool
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_stat/
SME: @ EvgenyMekhanik
Peer reviewer: @

Details

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 has been implemented to get the same
statistics as when using box.stat.net, but for a thread. User can call
box.stat.net.thread() as a function to get general network statistics
per threads. 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 statistics 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
...

Requested by @EvgenyMekhanik in tarantool/tarantool@6fd94e2

@xuniq xuniq added feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality labels Dec 9, 2021
@xuniq xuniq added this to the Estimate [@xuniq] milestone Dec 9, 2021
@xuniq xuniq changed the title getting network statistic per thread was implemented [2pt?] getting network statistic per thread was implemented Dec 9, 2021
@xuniq xuniq changed the title [2pt?] getting network statistic per thread was implemented [2pt] getting network statistic per thread was implemented Dec 10, 2021
@xuniq xuniq modified the milestones: Estimate [@xuniq], box.stat Dec 10, 2021
@p7nov p7nov self-assigned this May 26, 2022
p7nov added a commit that referenced this issue May 26, 2022
Fixes #2421 

Co-authored-by: Patience Daur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants