the maxconn should be created on global section of HAprxy config file

Bug #1516861 reported by Xiao Li Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Expired
Medium
Unassigned

Bug Description

        [Summary]
 LB_NFV:KiloV1 ,the maxconn should be created on global section of HAprxy config file

 [Topo]
        Openstack version :RDO kilo
        OS version :centOS 7.1

 [Description and expect result]
 the maxconn should be created on global section of HAprxy config file

 [Reproduceable or not]
  it is easy to recreate.

 [Recreate Steps]
after create a LB with max-session limit , the maxconn was not wrote to global section of HA proxy config file ,
 this max config will effect our max session number ,because file-handle number was less than expect

log
following is default config ,the max open file is 4031
[root@scalenetwork1 ~(keystone_admin)]# cat /proc/24868/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 127881 127881 processes
Max open files 4031 4031 files <<<<<<<<<
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 127881 127881 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
[root@scalenetwork1 ~(keystone_admin)]#

log
following is config which maxconn in global secion has been change to 100000 ,the max open file is 200031
[root@scalenetwork1 ~(keystone_admin)]# cat /proc/14650/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 127881 127881 processes
Max open files 200031 200031 files <<<<<<<<<<<<<<<<<<<
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 127881 127881 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
[root@scalenetwork1 ~(keystone_admin)]#

 [Configration]
  [root@nit ~(keystone_admin)]# more /var/lib/neutron/lbaas/61a7696f-ded6-493c-98bc-27c2a82cca15/conf
global
        daemon
        user nobody
        maxconn 100000<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<miss his parameter on global section
        group haproxy
        log /dev/log local0
        log /dev/log local1 notice
        stats socket /var/lib/neutron/lbaas/61a7696f-ded6-493c-98bc-27c2a82cca15/sock mode 0666 level user
defaults
        log global
        retries 3
        option redispatch
        timeout connect 5000
        timeout client 50000
        timeout server 50000
frontend 46d5cb86-ec6c-474e-82dd-9dc70baa3222
        option tcplog
        bind 0.0.0.0:80
        mode http
        default_backend 61a7696f-ded6-493c-98bc-27c2a82cca15
        maxconn 50000
        option forwardfor
backend 61a7696f-ded6-493c-98bc-27c2a82cca15
        mode http
        balance roundrobin
        option forwardfor

 [logs]
 Post logs here.

 [Root cause anlyze or debug inf]

 [Attachment]

Tags: lbaas kilov1
Gary Kotton (garyk)
Changed in neutron:
importance: Undecided → Medium
status: New → Confirmed
Richard Theis (rtheis)
Changed in neutron:
assignee: nobody → Richard Theis (rtheis)
Richard Theis (rtheis)
Changed in neutron:
assignee: Richard Theis (rtheis) → nobody
sparkliu (spark-liu-i)
Changed in neutron:
assignee: nobody → sparkliu (spark-liu-i)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

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

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lbaas (master)

Change abandoned by sparkliu (<email address hidden>) on branch: master
Review: https://review.openstack.org/258888
Reason: a new changed was created after "git commit -a --amend" and git review ,so abandon it , sorry for inconvenient
https://review.openstack.org/#/c/258299/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/258888
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

If you are still working on this please resume, or allow someone else to pick this up.

Changed in neutron:
status: In Progress → Incomplete
assignee: sparkliu (spark-liu-i) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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