the maxconn should be created on global section of HAprxy config file
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/
global
daemon
user nobody
maxconn 100000<
group haproxy
log /dev/log local0
log /dev/log local1 notice
stats socket /var/lib/
defaults
log global
retries 3
option redispatch
timeout connect 5000
timeout client 50000
timeout server 50000
frontend 46d5cb86-
option tcplog
bind 0.0.0.0:80
mode http
maxconn 50000
option forwardfor
backend 61a7696f-
mode http
balance roundrobin
option forwardfor
[logs]
Post logs here.
[Root cause anlyze or debug inf]
[Attachment]
Changed in neutron: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in neutron: | |
assignee: | nobody → Richard Theis (rtheis) |
Changed in neutron: | |
assignee: | Richard Theis (rtheis) → nobody |
Changed in neutron: | |
assignee: | nobody → sparkliu (spark-liu-i) |
Fix proposed to branch: master /review. openstack. org/258888
Review: https:/