rename sysctlFSFileMax to rlimitMaxNumFiles to reflect what it actually does

This commit is contained in:
Elvin Efendi 2019-01-15 15:34:17 -05:00
parent f7c42b78ac
commit bdf6e47004
3 changed files with 5 additions and 6 deletions

View file

@ -527,7 +527,7 @@ func (n *NGINXController) OnUpdate(ingressCfg ingress.Configuration) error {
if err != nil {
wp = 1
}
maxOpenFiles := (sysctlFSFileMax() / wp) - 1024
maxOpenFiles := (rlimitMaxNumFiles() / wp) - 1024
klog.V(3).Infof("Maximum number of open file descriptors: %d", maxOpenFiles)
if maxOpenFiles < 1024 {
// this means the value of RLIMIT_NOFILE is too low.