Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadLimiter ¶
type LoadLimiter struct {
// contains filtered or unexported fields
}
LoadLimiter is a limiter to control loading concurrency and it throttles the loading instead of rejecting. The motivation of this limiter is the fact that loading requires multiple syscalls which can create a new OS threads and might result in hitting the internal thread count limit of Go runtime.
func NewLoadLimiter ¶
func NewLoadLimiter(reg prometheus.Registerer, name string, limit int) *LoadLimiter
func (*LoadLimiter) Release ¶
func (l *LoadLimiter) Release()
Click to show internal directories.
Click to hide internal directories.