Documentation
¶
Index ¶
Constants ¶
View Source
const ( FirstTripType uint = iota SecondTripType )
View Source
const ( TimeDefaultLayout = "2006-01-02 15:04:05.999999999 -0700 MST" AgentCircuitBreakerFileName = "cesAgentCircuitBreaker" AgentPIDFileName = "cesAgent.pid" CBCheckIntervalInSecond = 60 TripCountFor1stThreshold = 3 TripCheckWindowInSecond = (TripCountFor1stThreshold-1)*CBCheckIntervalInSecond + 11 // 11 just for tolerance SleepCheckCount = 3 SleepCheckWindowInSecond = (SleepCheckCount + 1) * TripCountFor1stThreshold * CBCheckIntervalInSecond SleepTimeInSecond = 20 * 60 CBMaxSizeInBytes = 1024 )
Variables ¶
This section is empty.
Functions ¶
func SingleInstanceCheck ¶
func SingleInstanceCheck() (err error)
SingleInstanceCheck check whether the agent process is running before start error indicates there is another agent process is running or sth. wrong to check
Types ¶
type CircuitBreaker ¶
CircuitBreaker
Click to show internal directories.
Click to hide internal directories.