Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultProcCronPeriod = time.Duration(5) * time.Second //ProcCron的周期,默认1s DefaultLogCronPeriod = time.Duration(3600) * time.Second //LogCron的周期,默认300s )
View Source
const (
DefaultSendQueueMaxSize = 102400 //10.24w
)
View Source
const (
DefaultSendTaskSleepInterval = time.Millisecond * 50 //默认睡眠间隔为50ms
)
send
Variables ¶
View Source
var ( JudgeNodeRing *rings.ConsistentHashNodeRing GraphNodeRing *rings.ConsistentHashNodeRing )
服务节点的一致性哈希环 pk -> node
View Source
var ( TsdbQueue *nlist.SafeListLimited JudgeQueues = make(map[string]*nlist.SafeListLimited) GraphQueues = make(map[string]*nlist.SafeListLimited) )
发送缓存队列 node -> queue_of_data
View Source
var ( JudgeConnPools *backend.SafeRpcConnPools TsdbConnPoolHelper *backend.TsdbConnPoolHelper GraphConnPools *backend.SafeRpcConnPools )
连接池 node_address -> connection_pool
View Source
var (
MinStep int //最小上报周期,单位sec
)
默认参数
Functions ¶
func DestroyConnPools ¶
func DestroyConnPools()
func Push2GraphSendQueue ¶
将数据 打入 某个Graph的发送缓存队列, 具体是哪一个Graph 由一致性哈希 决定
func Push2JudgeSendQueue ¶
将数据 打入 某个Judge的发送缓存队列, 具体是哪一个Judge 由一致性哈希 决定
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.