loadmanager

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

loadmanager.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustConcurrency

func AdjustConcurrency(maxConcurrency int, loadThreshold float64) (int, float64, float64, float64, float64)

AdjustConcurrency adjusts concurrency based on load in the background and returns the calculated loads in the last 1, 5, and 15 minutes.

func CalculateLoad

func CalculateLoad() float64

CalculateLoad calculates the combined CPU and memory load.

Types

This section is empty.

Jump to

Keyboard shortcuts

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