Updated log level to v2 for sysctlFSFileMax.

This is very importatnt log for trouble-shooting, we should update
it to v2 by default.
This commit is contained in:
Guangya Liu 2018-02-23 23:26:27 +08:00
parent 309a79483f
commit b831552589
2 changed files with 2 additions and 2 deletions

View file

@ -551,7 +551,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
wp = 1
}
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 {
// this means the value of RLIMIT_NOFILE is too low.
maxOpenFiles = 1024

View file

@ -61,6 +61,6 @@ func sysctlFSFileMax() int {
// returning 0 means don't render the value
return 0
}
glog.V(3).Infof("system fs.file-max=%v", fileMax)
glog.V(2).Infof("system fs.file-max=%v", fileMax)
return fileMax
}