HAProxy Stats Test

This test monitors each proxy service associated with the target Proxy server and for each proxy service, reports the status, session utilization, session related statistics such as current sessions, maximum sessions, errors that were detected etc. Using this test, administrators can easily figure out processing bottlenecks and rectify the same before the users complain of slow responsiveness of the proxy server.

Target of the test : A HA Proxy server

Agent deploying the test : An internal agent

Outputs of the test : One set of results for every proxy service of the target HA Proxy server being monitored

Configurable parameters for the test
Parameters Description

Test period

This indicates how often should the test be executed.

Host

The host for which the test is to be configured.

Port

Refers to the port used by the HA Proxy server. By default, this is 9000.

HA Proxy Username

The user name of the proxy server

HA Proxy Password

The password of the proxy server

Confirm password

Confirm the password by retyping it here.

HA Proxy Port

Refers to the port used by the HA Proxy server.

SSL

By default, the HA Proxy server is SSL-enabled. Accordingly, the SSL flag is set to Yes by default. This indicates that the eG agent will communicate with the HA Proxy server via HTTPS by default.

HA Proxy Timeout

Specify the time duration (in seconds) beyond which this test should time out in the HA Proxy Timeout text box. The default is 240 seconds.

Measurements made by the test
Measurement Description Measurement Unit Interpretation

Current queued requests

Indicates the number of current connections for which a backend server was not assigned by this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Maximum queued requests

Indicates the maximum number of requests that were queued on the proxy server for this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Current connection rate

Indicates the rate at which connections were established for this proxy service during the last measurement period.

Connections/sec

This measure is applicable only for the Frontend descriptor.

If the backend server is bombarded with connections that exceed the global maximum connection limit, the HA Proxy server will seamlessly queue new connections in the system kernel’s socket queue until another backend server is available.

If the connections are constantly queued, then ensure to increase the maximum connection limit on individual backend servers or increase the global maximum connection limit.

Current request rate

Indicates the number of HTTP requests sent/received per second through this proxy service during the last measurement period.

Requests/sec

This measure is applicable only for the Frontend descriptor.

Current session rate

Indicates the number of HTTP requests sent/received per second for the current sessions through this proxy service during the last measurement period.

Requests/sec

Maximum connection rate

Indicates the maximum number of connections established per second through this proxy service during the last measurement period.

Connections/sec

This measure is applicable only for the Frontend descriptor.

Maximum request rate

Indicates the maximum number of requests received per second by the proxy server through this proxy service.

Requests/sec

This measure is applicable only for the Frontend descriptor.

Maximum session rate

Indicates the rate at which new sessions were established through this proxy service.

Sessions/sec

Current sessions

Indicates the number of sessions currently established through the proxy server.

Number

This measure is applicable only for the Frontend descriptor.

Maximum sessions

Indicates the maximum number of sessions established through this proxy service.

Number

This measure is applicable only for the Frontend descriptor.

Session limit

Indicates the number of sessions that could be definitely established to the proxy server through this proxy service.

Number

Session utilization

Indicates the utilization percentage of sessions that were established by this proxy service.

Percentage

Total connections

Indicates the total number of connections established on the proxy server through this proxy service.

Number

This measure is applicable only for the Frontend descriptor.

Total HTTP requests

Indicates the total number of HTTP requests to the proxy server through this proxy service.

Number

A high value can indicate an increase in the load on one or more applications, or a change in the characteristics of one or more applications.

Total sessions

Indicates the total number of sessions established on the proxy server through this proxy service.

Number

A high value can indicate an increase in the load on one or more applications, or a change in the characteristics of one or more applications on the server.

HTTP 1xx responses

Indicates the number of HTTP responses received with 1xx code from the proxy server for the HTTP requests through this proxy service.

Number

HTTP 2xx responses

Indicates the number of HTTP responses received with 2xx code from the proxy server for the HTTP requests through this proxy service.

Number

The 200 response is the standard response for successful HTTP requests.

HTTP 3xx responses

Indicates the number of HTTP responses received with 3xx code from the proxy server for the HTTP requests through this proxy service.

Number

HTTP 4xx responses

Indicates the number of HTTP responses received with 4xx code from the proxy server for the HTTP requests through this proxy service.

Number

HTTP 5xx responses

Indicates the number of HTTP responses received with 5xx code from the proxy server for the HTTP requests through this proxy service.

Number

Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has encountered an error or is otherwise incapable of performing the request.

Normally, the value of the measure should be 0. A non zero value indicates there are some errors in the proxy server.

Other responses

Indicates the number of HTTP responses received with other codes for e.g., protocol errors from the proxy server for the HTTP requests through this proxy service.

Number

Intercepted requests

Indicates the number of intercepted requests to the proxy server through this proxy service.

Number

This measure is applicable only for the Frontend descriptor.

Compressed HTTP responses

Indicates the number of HTTP responses that were compressed on the proxy server through this proxy service.

Number

HTTP response data fed to the compressor

Indicates the amount of HTTP response bytes fed to the compressor of the proxy server through this proxy service.

MB

HTTP response data emitted from the compressor

Indicates the amount of HTTP response bytes emitted by the compressor on the proxy server through this proxy service.

MB

HTTP response data bypassed by the compressor

Indicates the amount of HTTP response bytes bypassed by the HTTP compressor on the proxy server through this proxy service.

MB

Average queue time

Indicates the average time spent in queue for the last 1024 requests sent through this proxy service.

Seconds

This measure is applicable only for the Backend descriptor.

Average connect time

Indicates the average connection time taken for the last 1024 requests sent through this proxy service.

Seconds

This measure is applicable only for the Backend descriptor.

Average response time

Indicates the average response time taken for the last 1024 requests sent through this proxy service.

Seconds

This measure is applicable only for the Backend descriptor.

Average total session time

Indicates the average total session time taken for the last 1024 requests sent through this proxy service.

Seconds

This measure is applicable only for the Backend descriptor.

Total number of times a server was selected

Indicates the total number of times a backend server was chosen for new session or for re-despatching the requests through this proxy service.

Seconds

This measure is applicable only for the Backend descriptor.

Last session assigned time

Indicates the time elapsed since a session was assigned to the backend server through this proxy service.

Minutes

This measure is applicable only for the Backend descriptor.

Data received

Indicates the amount of data received by the proxy server through this proxy service.

MB

Data transmitted

Indicates the amount of data transmitted to the proxy server through this proxy service.

MB

Response data

Indicates the amount of data sent as response to the proxy server through this proxy service.

MB

Compression bytes outcoming percent

Indicates the compression bytes outcoming percentage for this proxy service.

MB

Total data saved

Indicates the total amount of data saved on the proxy server when data is transmitted through this proxy service.

MB

Total data saved percent

Indicates the percentage of data saved on the proxy server when data is transmitted through this proxy service.

Percentage

Denied requests

Indicates the number of requests that were denied by the proxy server when received through this proxy service.

Number

Denied responses

Indicates the number of responses denied by the proxy server when received through this proxy service.

Number

Denied connections

Indicates the number of connections denied by the proxy server when received through this proxy service.

Number

This measure is applicable only for the Frontend descriptor.

Denied sessions

Indicates the number of sessions denied by the proxy server when established through this proxy service.

Number

This measure is applicable only for the Frontend descriptor.

Request errors

Indicates the number of error prone requests received through this proxy service on the proxy server.

Number

This measure is applicable only for the Frontend descriptor.

The requests may be error- prone due to the following reasons:

  • early termination from the client, before the request has been sent.
  • read error from the client
  • client timeout
  • client closed connection
  • various bad requests from the client.
  • request was tarpitted.

Request with error connections

Indicates the number of requests that encountered an error while trying to connect to a backend server through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Total response errors

Indicates the total number of response errors detected when responses were received through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Ideally, the value of this measure should be zero.

Data transfers aborted by client

Indicates the number of data transfers aborted by the client when data transfer was made through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Data transfers aborted by server

Indicates the number of data transfers aborted by the proxy server when data transfer was made through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Retries to connect a server

Indicates the number of times a connection to a server was retried through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Redispatched requests to another a server

Indicates the number of times a request was redispatched to another server through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Status

Indicates the current status of this proxy service.

The values reported by this measure and their numeric equivalents are available in the table below:

Measure Value Numeric Value
Down 0
Up 1
Open 2
No Load Balance 3
Under Maintenance 4

Note:

This measure reports the Measure Values listed in the table above to indicate the current status this proxy service. However, in the graph of this measure is indicated using only the Numeric Values listed in the above table.

Status of last health check

Indicates the status of the last health check for this proxy service.

The values reported by this measure and their numeric equivalents are available in the table below:

Measure Value Numeric Value
Unknown 0
Initializing 1
Socket Error 2
Passed on Layer 4 3
Layer 1-4 timeout 4
Layer 1-4 connection problem 5
Passed on Layer 6 6
Layer 6 (SSL) timeout 7
Layer 6 invalid response 8
Passed on Layer 7 9
Conditionally passes on Layer 7 10
Layer 7 (HTTP/SNMP) timeout 11
Layer 7 invalid response 12
Layer 7 response error 13

Note:

This measure reports the Measure Values listed in the table above to indicate the status of the last health check for this proxy service. However, in the graph of this measure is indicated using only the Numeric Values listed in the above table.

Total weight

Indicates the total weight of this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Active servers

Indicates the number of servers that were active while connecting through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Backup servers

Indicates the number of backup servers connected to the proxy server through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

Failed checks

Indicates the number of failed checks to the proxy server through this proxy service.

Number

This measure is applicable only for the Backend descriptor.

UP/DOWN transitions

Indicates the number of Up to DOWN transitions on the proxy server through this proxy service.

Number

The backend counter counts transitions to the whole backend being down, rather than the sum of the counters for each server.

Total downtime

Indicates the total downtime of this proxy service.

Number

This measure is applicable only for the Backend descriptor.