- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SetNumFiles (0.11 sec)
-
pkg/util/rlimit/rlimit_unsupported.go
See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "errors" ) // SetNumFiles sets the rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return errors.New("SetRLimit unsupported in this platform")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 813 bytes - Viewed (0) -
pkg/util/rlimit/rlimit_linux.go
See the License for the specific language governing permissions and limitations under the License. */ package rlimit import ( "golang.org/x/sys/unix" ) // SetNumFiles sets the linux rlimit for the maximum open files. func SetNumFiles(maxOpenFiles uint64) error { return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 866 bytes - Viewed (0) -
cmd/kubelet/app/server.go
if kubeDeps.PodConfig == nil { return fmt.Errorf("failed to create kubelet, pod source config was nil") } podCfg := kubeDeps.PodConfig if err := rlimit.SetNumFiles(uint64(kubeServer.MaxOpenFiles)); err != nil { klog.ErrorS(err, "Failed to set rlimit on max file handles") } // process pods and exit. if runOnce {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:34 UTC 2024 - 53.9K bytes - Viewed (0)