app

package
v0.0.0-...-52e0d5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootCommand

func NewRootCommand(sds istioagent.SDSServiceFactory) *cobra.Command

func RaiseFileLimits

func RaiseFileLimits() (uint64, error)

RaiseFileLimits sets the file limit to the maximum allowed, to avoid exhaustion of file descriptors. This is done by setting soft limit == hard limit. Typical container runtimes already do this, but on VMs, etc this is generally not the case, and a limit of 1024 is common -- this is quite low!

Go already sets this (https://github.com/golang/go/issues/46279). However, it will restore the original limit for subprocesses (Envoy): https://github.com/golang/go/blob/f0d1195e13e06acdf8999188decc63306f9903f5/src/syscall/rlimit.go#L14. By explicitly doing it ourselves, we get the limit passed through to Envoy.

This function returns the new limit additionally, for convenience.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL