Documentation ¶
Index ¶
Constants ¶
View Source
const ( KB = 1 << (10 * iota) MB GB TB PB )
Variables ¶
This section is empty.
Functions ¶
func SetGoMaxProcPercent ¶
SetGoMaxProcPercent
use percent to reset runtime.GOMAXPROCS. when in container system, SetGoMaxProcPercent will skip all action @argument: p: range 1 100 @example: 1: vcpu := 8 p := 10 # means 10% of cpu resource GOMAXPROCS equal to 1 2: vcpu := 10 p := 20 # means 20% of cpu resource GOMAXPROCS equal to 2
func SetGoMemoryLimit ¶
SetGoMemoryLimit
use percent to reset debug.SetMemoryLimit. when in container system, SetGoMemoryLimit will skip all action @argument: memString: <int><unit> :int: valid int :unit: B,KB,MB,GB,TB,PB. case insensitive. unit configuration empty means 'B'
func SetGoMemoryLimitPercent ¶
SetGoMemoryLimitPercent
use percent to reset debug.SetMemoryLimit. when in container system, SetGoMemoryLimitPercent will skip all action @argument: p: range 1 100
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.