sender

package
v0.0.0-...-dfc5ca7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProcCronPeriod = time.Duration(10) * time.Second //ProcCron的周期,默认1s
)
View Source
const (
	DefaultSendQueueMaxSize = 102400 //10.24w
)
View Source
const (
	DefaultSendTaskSleepInterval = time.Millisecond * 50 //默认睡眠间隔为50ms
)

send

Variables

View Source
var (
	InfluxdbConnPools *cpool.InfluxdbConnPoolHelper
)

连接池 node_address -> connection_pool

View Source
var (
	InfluxdbQueues = make(map[string]*nlist.SafeListLimited)
)

发送缓存队列 node -> queue_of_data

Functions

func Convert2InfluxPoint

func Convert2InfluxPoint(d *cmodel.MetaData) *client.Point

转化为tsdb格式

func DestroyConnPools

func DestroyConnPools()

func Push2TsdbSendQueue

func Push2TsdbSendQueue(items []*cmodel.MetaData)

将数据 打入所有的Tsdb的发送缓存队列, 相互备份

func Start

func Start(server *g.ReceiverStatusManager)

初始化数据发送服务, 在main函数中调用

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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