Skip to content

enable "start_stats_thread" in lua interface "start_server"#9

Merged
wallyatgithub merged 2 commits intowallyatgithub:mainfrom
stxyang:main
Oct 16, 2022
Merged

enable "start_stats_thread" in lua interface "start_server"#9
wallyatgithub merged 2 commits intowallyatgithub:mainfrom
stxyang:main

Conversation

@stxyang
Copy link
Copy Markdown
Contributor

@stxyang stxyang commented Oct 16, 2022

  1. enable "start_stats_thread" in lua interface "start_server"
    both
    start_server("maock-cnsbc-plus.json", true)
    and
    start_server("maock-cnsbc-plus.json")
    would work.

  2. re-format statistic output

  • make stats headers align with values

  • make stats header appear always instead of 1/10

     req-name,      resp-name,       msg-total, throttled-total,      rps,   throttled-rps
    

GetPCFBindings-v4, PCFBindings-v4, 0, 0, 0, 0
GetPCFBindings-v6, PCFBindings-v6, 0, 0, 0, 0
PostAppSessions, CREATE_ASC, 6002, 0, 0, 0
ModAppSession, UPDATE_ASC, 6000, 0, 0, 0
DeleteAppSession, DELETE_ASC, 0, 0, 0, 0
NOTIFY-FRA, 204, 1202, 0, 20, 0
[hook], ---, 0, 0, 0, 0
Notify Back, RESP_W_204, 1202, 0, 20, 0
SUM, SUM, 14406, 0, 40, 0
UNMATCHED, ---, 0, ---, 0, ---

stxyang and others added 2 commits October 16, 2022 14:42
   both
     start_server("maock-cnsbc-plus.json", true)
   and
     start_server("maock-cnsbc-plus.json")
   would work.

2. re-format statistic output
  - make stats headers align with values
  - make stats header appear always instead of 1/10

         req-name,      resp-name,       msg-total, throttled-total,      rps,   throttled-rps
GetPCFBindings-v4, PCFBindings-v4,               0,               0,        0,               0
GetPCFBindings-v6, PCFBindings-v6,               0,               0,        0,               0
  PostAppSessions,     CREATE_ASC,            6002,               0,        0,               0
    ModAppSession,     UPDATE_ASC,            6000,               0,        0,               0
 DeleteAppSession,     DELETE_ASC,               0,               0,        0,               0
       NOTIFY-FRA,            204,            1202,               0,       20,               0
           [hook],            ---,               0,               0,        0,               0
      Notify Back,     RESP_W_204,            1202,               0,       20,               0
              SUM,            SUM,           14406,               0,       40,               0
        UNMATCHED,            ---,               0,             ---,        0,             ---
@wallyatgithub wallyatgithub merged commit 591095e into wallyatgithub:main Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants