{"modulePath":"github.com/GoogleCloudPlatform/cloud-sql-proxy","version":"v1.14.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package limits\n\nPackage limits provides routines to check and enforce certain resource limits on the Cloud SQL client proxy process.\n\n## Constants\n\n```go\nconst ExpectedFDs = 8500\n```\nEach 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.\n\n## Functions\n\n```go\nfunc SetupFDLimits(wantFDs uint64) error\n```\nSetupFDLimits 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.\n\n","path":"github.com/GoogleCloudPlatform/cloud-sql-proxy/proxy/limits","name":"limits","synopsis":"Package limits provides routines to check and enforce certain resource limits on the Cloud SQL client proxy process.","isRedistributable":true}
