You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

198 lines
10 KiB

  1. From 75c98ad211c9e1b7304033b9d3eb4fe552d725d2 Mon Sep 17 00:00:00 2001
  2. From: James Westby <james.westby@canonical.com>
  3. Date: Tue, 8 Jul 2014 10:14:57 -0400
  4. Subject: [PATCH 20/21] DOC: expand the docs for the provided stats.
  5. Indicate for each statistic which types may have a value for
  6. that statistic.
  7. Explain some of the provided statistics a little more deeply.
  8. (cherry picked from commit ebe62d645b45aa2210ef848fa16805a0aba7d75a)
  9. ---
  10. doc/configuration.txt | 163 +++++++++++++++++++++++++++++++-------------------
  11. 1 file changed, 100 insertions(+), 63 deletions(-)
  12. diff --git a/doc/configuration.txt b/doc/configuration.txt
  13. index 73195ba..8407500 100644
  14. --- a/doc/configuration.txt
  15. +++ b/doc/configuration.txt
  16. @@ -13075,44 +13075,76 @@ text is doubled ('""'), which is the format that most tools recognize. Please
  17. do not insert any column before these ones in order not to break tools which
  18. use hard-coded column positions.
  19. - 0. pxname: proxy name
  20. - 1. svname: service name (FRONTEND for frontend, BACKEND for backend, any name
  21. - for server)
  22. - 2. qcur: current queued requests
  23. - 3. qmax: max queued requests
  24. - 4. scur: current sessions
  25. - 5. smax: max sessions
  26. - 6. slim: sessions limit
  27. - 7. stot: total sessions
  28. - 8. bin: bytes in
  29. - 9. bout: bytes out
  30. - 10. dreq: denied requests
  31. - 11. dresp: denied responses
  32. - 12. ereq: request errors
  33. - 13. econ: connection errors
  34. - 14. eresp: response errors (among which srv_abrt)
  35. - 15. wretr: retries (warning)
  36. - 16. wredis: redispatches (warning)
  37. - 17. status: status (UP/DOWN/NOLB/MAINT/MAINT(via)...)
  38. - 18. weight: server weight (server), total weight (backend)
  39. - 19. act: server is active (server), number of active servers (backend)
  40. - 20. bck: server is backup (server), number of backup servers (backend)
  41. - 21. chkfail: number of failed checks
  42. - 22. chkdown: number of UP->DOWN transitions
  43. - 23. lastchg: last status change (in seconds)
  44. - 24. downtime: total downtime (in seconds)
  45. - 25. qlimit: queue limit
  46. - 26. pid: process id (0 for first instance, 1 for second, ...)
  47. - 27. iid: unique proxy id
  48. - 28. sid: service id (unique inside a proxy)
  49. - 29. throttle: warm up status
  50. - 30. lbtot: total number of times a server was selected
  51. - 31. tracked: id of proxy/server if tracking is enabled
  52. - 32. type (0=frontend, 1=backend, 2=server, 3=socket)
  53. - 33. rate: number of sessions per second over last elapsed second
  54. - 34. rate_lim: limit on new sessions per second
  55. - 35. rate_max: max number of new sessions per second
  56. - 36. check_status: status of last health check, one of:
  57. +In brackets after each field name are the types which may have a value for
  58. +that field. The types are L (Listeners), F (Frontends), B (Backends), and
  59. +S (Servers).
  60. +
  61. + 0. pxname [LFBS]: proxy name
  62. + 1. svname [LFBS]: service name (FRONTEND for frontend, BACKEND for backend,
  63. + any name for server/listener)
  64. + 2. qcur [..BS]: current queued requests. For the backend this reports the
  65. + number queued without a server assigned.
  66. + 3. qmax [..BS]: max value of qcur
  67. + 4. scur [LFBS]: current sessions
  68. + 5. smax [LFBS]: max sessions
  69. + 6. slim [LFBS]: configured session limit
  70. + 7. stot [LFBS]: cumulative number of connections
  71. + 8. bin [LFBS]: bytes in
  72. + 9. bout [LFBS]: bytes out
  73. + 10. dreq [LFB.]: requests denied because of security concerns.
  74. + - For tcp this is because of a matched tcp-request content rule.
  75. + - For http this is because of a matched http-request or tarpit rule.
  76. + 11. dresp [LFBS]: responses denied because of security concerns.
  77. + - For http this is because of a matched http-request rule, or
  78. + "option checkcache".
  79. + 12. ereq [LF..]: request errors. Some of the possible causes are:
  80. + - early termination from the client, before the request has been sent.
  81. + - read error from the client
  82. + - client timeout
  83. + - client closed connection
  84. + - various bad requests from the client.
  85. + - request was tarpitted.
  86. + 13. econ [..BS]: number of requests that encountered an error trying to
  87. + connect to a backend server. The backend stat is the sum of the stat
  88. + for all servers of that backend, plus any connection errors not
  89. + associated with a particular server (such as the backend having no
  90. + active servers).
  91. + 14. eresp [..BS]: response errors. srv_abrt will be counted here also.
  92. + Some other errors are:
  93. + - write error on the client socket (won't be counted for the server stat)
  94. + - failure applying filters to the response.
  95. + 15. wretr [..BS]: number of times a connection to a server was retried.
  96. + 16. wredis [..BS]: number of times a request was redispatched to another
  97. + server. The server value counts the number of times that server was
  98. + switched away from.
  99. + 17. status [LFBS]: status (UP/DOWN/NOLB/MAINT/MAINT(via)...)
  100. + 18. weight [..BS]: server weight (server), total weight (backend)
  101. + 19. act [..BS]: server is active (server), number of active servers (backend)
  102. + 20. bck [..BS]: server is backup (server), number of backup servers (backend)
  103. + 21. chkfail [...S]: number of failed checks. (Only counts checks failed when
  104. + the server is up.)
  105. + 22. chkdown [..BS]: number of UP->DOWN transitions. The backend counter counts
  106. + transitions to the whole backend being down, rather than the sum of the
  107. + counters for each server.
  108. + 23. lastchg [..BS]: number of seconds since the last UP<->DOWN transition
  109. + 24. downtime [..BS]: total downtime (in seconds). The value for the backend
  110. + is the downtime for the whole backend, not the sum of the server downtime.
  111. + 25. qlimit [...S]: configured maxqueue for the server, or nothing in the
  112. + value is 0 (default, meaning no limit)
  113. + 26. pid [LFBS]: process id (0 for first instance, 1 for second, ...)
  114. + 27. iid [LFBS]: unique proxy id
  115. + 28. sid [L..S]: server id (unique inside a proxy)
  116. + 29. throttle [...S]: current throttle percentage for the server, when
  117. + slowstart is active, or no value if not in slowstart.
  118. + 30. lbtot [..BS]: total number of times a server was selected, either for new
  119. + sessions, or when re-dispatching. The server counter is the number
  120. + of times that server was selected.
  121. + 31. tracked [...S]: id of proxy/server if tracking is enabled.
  122. + 32. type [LFBS]: (0=frontend, 1=backend, 2=server, 3=socket/listener)
  123. + 33. rate [.FBS]: number of sessions per second over last elapsed second
  124. + 34. rate_lim [.F..]: configured limit on new sessions per second
  125. + 35. rate_max [.FBS]: max number of new sessions per second
  126. + 36. check_status [...S]: status of last health check, one of:
  127. UNK -> unknown
  128. INI -> initializing
  129. SOCKERR -> socket error
  130. @@ -13129,31 +13161,36 @@ use hard-coded column positions.
  131. L7TOUT -> layer 7 (HTTP/SMTP) timeout
  132. L7RSP -> layer 7 invalid response - protocol error
  133. L7STS -> layer 7 response error, for example HTTP 5xx
  134. - 37. check_code: layer5-7 code, if available
  135. - 38. check_duration: time in ms took to finish last health check
  136. - 39. hrsp_1xx: http responses with 1xx code
  137. - 40. hrsp_2xx: http responses with 2xx code
  138. - 41. hrsp_3xx: http responses with 3xx code
  139. - 42. hrsp_4xx: http responses with 4xx code
  140. - 43. hrsp_5xx: http responses with 5xx code
  141. - 44. hrsp_other: http responses with other codes (protocol error)
  142. - 45. hanafail: failed health checks details
  143. - 46. req_rate: HTTP requests per second over last elapsed second
  144. - 47. req_rate_max: max number of HTTP requests per second observed
  145. - 48. req_tot: total number of HTTP requests received
  146. - 49. cli_abrt: number of data transfers aborted by the client
  147. - 50. srv_abrt: number of data transfers aborted by the server (inc. in eresp)
  148. - 51. comp_in: number of HTTP response bytes fed to the compressor
  149. - 52. comp_out: number of HTTP response bytes emitted by the compressor
  150. - 53. comp_byp: number of bytes that bypassed the HTTP compressor (CPU/BW limit)
  151. - 54. comp_rsp: number of HTTP responses that were compressed
  152. - 55. lastsess: number of seconds since last session assigned to server/backend
  153. - 56. last_chk: last health check contents or textual error
  154. - 57. last_agt: last agent check contents or textual error
  155. - 58. qtime: the average queue time in ms over the 1024 last requests
  156. - 59. ctime: the average connect time in ms over the 1024 last requests
  157. - 60. rtime: the average response time in ms over the 1024 last requests (0 for TCP)
  158. - 61. ttime: the average total session time in ms over the 1024 last requests
  159. + 37. check_code [...S]: layer5-7 code, if available
  160. + 38. check_duration [...S]: time in ms took to finish last health check
  161. + 39. hrsp_1xx [.FBS]: http responses with 1xx code
  162. + 40. hrsp_2xx [.FBS]: http responses with 2xx code
  163. + 41. hrsp_3xx [.FBS]: http responses with 3xx code
  164. + 42. hrsp_4xx [.FBS]: http responses with 4xx code
  165. + 43. hrsp_5xx [.FBS]: http responses with 5xx code
  166. + 44. hrsp_other [.FBS]: http responses with other codes (protocol error)
  167. + 45. hanafail [...S]: failed health checks details
  168. + 46. req_rate [.F..]: HTTP requests per second over last elapsed second
  169. + 47. req_rate_max [.F..]: max number of HTTP requests per second observed
  170. + 48. req_tot [.F..]: total number of HTTP requests received
  171. + 49. cli_abrt [..BS]: number of data transfers aborted by the client
  172. + 50. srv_abrt [..BS]: number of data transfers aborted by the server
  173. + (inc. in eresp)
  174. + 51. comp_in [.FB.]: number of HTTP response bytes fed to the compressor
  175. + 52. comp_out [.FB.]: number of HTTP response bytes emitted by the compressor
  176. + 53. comp_byp [.FB.]: number of bytes that bypassed the HTTP compressor
  177. + (CPU/BW limit)
  178. + 54. comp_rsp [.FB.]: number of HTTP responses that were compressed
  179. + 55. lastsess [..BS]: number of seconds since last session assigned to
  180. + server/backend
  181. + 56. last_chk [...S]: last health check contents or textual error
  182. + 57. last_agt [...S]: last agent check contents or textual error
  183. + 58. qtime [..BS]: the average queue time in ms over the 1024 last requests
  184. + 59. ctime [..BS]: the average connect time in ms over the 1024 last requests
  185. + 60. rtime [..BS]: the average response time in ms over the 1024 last requests
  186. + (0 for TCP)
  187. + 61. ttime [..BS]: the average total session time in ms over the 1024 last
  188. + requests
  189. 9.2. Unix Socket commands
  190. --
  191. 1.8.5.5