Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackoffSchedule = []time.Duration{ 1 * time.Second, 2 * time.Second, 4 * time.Second, 8 * time.Second, 16 * time.Second, }
View Source
var (
CPU_HIGH = false
)
View Source
var ProcessBackoff = func() error { timeout := time.NewTimer(_backoff_timeout) defer timeout.Stop() select { case <-time.After(_backoff_duration): logger.DefaultLogger.Warn("cpu load high") return nil case <-timeout.C: return logger.RpcError(status.Error(codes.Internal, "queue processinging signing requests at capacity"), nil) } }
Backoff Authentication middleware/authentication.go
Functions ¶
func GenerateLockfile ¶
func LockfileBackoff ¶
func RemoveLockfile ¶
func UpdateCPULoad ¶
func UpdateCPULoad()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.