limits

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

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

func SetupFDLimits(wantFDs uint64) error

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.

Jump to

Keyboard shortcuts

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