Lbaas: Active_connections and Total_Connection in lbaas always show 0 for lb-pool-stat

Bug #1319361 reported by Ashish Kumar Gupta
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Vishal Agarwal

Bug Description

Steps to Reproduce:
1. Create network, subnet
2.Create pool,member vip and healthmonitor.
neutron lb-pool-list
+--------------------------------------+-------+----------+-------------+----------+----------------+--------+
| id | name | provider | lb_method | protocol | admin_state_up | status |
+--------------------------------------+-------+----------+-------------+----------+----------------+--------+
| d488b38e-c8f1-4db6-bb5f-8b2500bef0ed | pool1 | haproxy | ROUND_ROBIN | HTTP | True | ACTIVE |
+--------------------------------------+-------+----------+-------------+----------+----------------+--------+

neutron lb-member-list
+--------------------------------------+-----------+---------------+----------------+--------+
| id | address | protocol_port | admin_state_up | status |
+--------------------------------------+-----------+---------------+----------------+--------+
| 303f3d66-c51c-4c92-b5da-d43440db9fb2 | 10.10.1.5 | 80 | True | ACTIVE |
| ac58985b-49de-480e-97e5-bff80a538c87 | 10.10.1.4 | 80 | True | ACTIVE |
+--------------------------------------+-----------+---------------+----------------+--------+

4. Validate the algorithm and try to send request from server to client .
5. Check the lp-pool-stats for the pool created.
Actual Results:
neutron lb-pool-stats pool1
+--------------------+-------+
| Field | Value |
+--------------------+-------+
| active_connections | 0 |
| bytes_in | 1440 |
| bytes_out | 560 |
| total_connections | 0 |
+--------------------+-------+
Connections in response for this command always show 0

Expected Results: Active connection should show the value when the connection is active and total connenction should show total number of active connections

Tags: lbaas
Revision history for this message
Ashish Kumar Gupta (ashish-kumar-gupta) wrote :
summary: Lbaas: Active_connections and Total_Connection in lbaas always show 0
- for ln-pool-stat
+ for lb-pool-stat
Revision history for this message
Vishal Agarwal (vishala) wrote :

Stats are being fetched from counters of haproxy in an interval of 6secs.

ACTIVE_CONNECTION maps to "qcur" counter of HAPROXY (indicating the current number of requests in the server's queue ), you must be running one or two requests at a time which are being served immediately. This counter may reflect in the load scenario's.

Not able to see anything which maps to “total_connections”, might be this is the reason for it to remain 0.

tags: added: lbaas
Vishal Agarwal (vishala)
Changed in neutron:
assignee: nobody → Vishal Agarwal (vishala)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/100299

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/100299
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f27e5244adcac9a12c04605fbf5c49a086d5fce5
Submitter: Jenkins
Branch: master

commit f27e5244adcac9a12c04605fbf5c49a086d5fce5
Author: Vishal Agarwal <email address hidden>
Date: Mon Jun 16 21:31:15 2014 +0530

    Fix pool statistics for LBaaS Haproxy driver

    Total connections was mapped to none of the counters
    of haproxy. Active connections was mapped to active request
    counter(qcur)) of haproxy which in low load situations
    always remains zero.

    Patch maps connections API counters to haproxy session counters
    and fixes unit test accordingly.

    Change-Id: I0ef4f76a75340232eb11a9b95453769ecd89d13a
    Closes-Bug: #1319361

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
status: Fix Committed → Fix Released
milestone: none → juno-2
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.