rename sysctlFSFileMax to rlimitMaxNumFiles to reflect what it actually does
This commit is contained in:
parent
f7c42b78ac
commit
bdf6e47004
3 changed files with 5 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue