Documentation ¶
Overview ¶
Package limits provides routines to check and enforce certain resource limits on the Cloud SQL client proxy process.
Index ¶
Constants ¶
View Source
const ExpectedFDs = 8500
Each connection handled by the proxy requires two file descriptors, one for the local end of the connection and one for the remote. So, the proxy process should be able to open at least 8K file descriptors if it is to handle 4K connections to one instance.
Variables ¶
This section is empty.
Functions ¶
func SetupFDLimits ¶
SetupFDLimits ensures that the process running the Cloud SQL proxy can have at least wantFDs number of open file descriptors. It returns an error if it cannot ensure the same.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.