bloomberg / comdb2

Bloomberg's distributed RDBMS
Other
1.39k stars 214 forks source link

Keeping track of network wait time to client #4827

Open riverszhang89 opened 2 weeks ago

riverszhang89 commented 2 weeks ago

This patch keeps track of how much time we are blocked on network IO to client, for instance:

11/06 18:57:56: LONG REQUEST 9562 msec ...
11/06 18:57:56:   sql=select * from jobs, sql=select * from jobs, ncols=10
11/06 18:57:56:   netwaitms=9148, rowcount=48445, cost=48454.000000