Updated log level to v2 for sysctlFSFileMax. (#2137)
This is very importatnt log for trouble-shooting, we should update it to v2 by default.
This commit is contained in:
parent
309a79483f
commit
f26c881e3f
2 changed files with 2 additions and 2 deletions
|
@ -551,7 +551,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
|
||||||
wp = 1
|
wp = 1
|
||||||
}
|
}
|
||||||
maxOpenFiles := (sysctlFSFileMax() / wp) - 1024
|
maxOpenFiles := (sysctlFSFileMax() / wp) - 1024
|
||||||
glog.V(3).Infof("maximum number of open file descriptors : %v", maxOpenFiles)
|
glog.V(2).Infof("maximum number of open file descriptors : %v", maxOpenFiles)
|
||||||
if maxOpenFiles < 1024 {
|
if maxOpenFiles < 1024 {
|
||||||
// this means the value of RLIMIT_NOFILE is too low.
|
// this means the value of RLIMIT_NOFILE is too low.
|
||||||
maxOpenFiles = 1024
|
maxOpenFiles = 1024
|
||||||
|
|
|
@ -61,6 +61,6 @@ func sysctlFSFileMax() int {
|
||||||
// returning 0 means don't render the value
|
// returning 0 means don't render the value
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
glog.V(3).Infof("system fs.file-max=%v", fileMax)
|
glog.V(2).Infof("system fs.file-max=%v", fileMax)
|
||||||
return fileMax
|
return fileMax
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue