config

package
v0.0.0-...-719f2d6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameUnknown   = "unknown"
	NameWorld     = "world"
	IdentityWorld = 2
)
View Source
const (
	PathRawL7  = "/tmp/seeflow_raw_l7.log.json"
	PathExL34  = "/tmp/seeflow_ex_l34.log.json"
	PathExL7   = "/tmp/seeflow_ex_l7.log.json"
	PathExSock = "/tmp/seeflow_ex_sock.log.json"
)

Variables

View Source
var (
	//请求 Hubble Flow 的数量
	BatchLastFlow = 50

	//插入 olap 的 Span 的数量
	BatchSpan = 50
)

for cmd observe

View Source
var (
	// 请求 Hubble Flow 的时间间隔
	GetFlowsInterval = time.Second
	// 触发 Assemble 算法的时间间隔。
	// 与上个时间间隔最好保持一致。
	AssembleInterval = time.Second
)

for cmd serve

View Source
var (
	// MaxNumFlow tm.l7FlowLRU 溢出阈值
	MaxNumFlow = 1024
	// MaxNumTracer tm.tracerLRU 溢出阈值
	MaxNumTracer     = 16
	MaxSpanTimestamp = time.Date(2025, 1, 1, 0, 0, 0, 0, time.UTC)
	MinSpanTimestamp = time.Unix(0, 0).UTC()
)

for pkg tracer

View Source
var (
	// 测试账号
	SEEFLOW_DEFAULT_DSN = "root:@tcp(127.0.0.1:9030)/seeflow"

	// DATE6 = "2006-01-02 15:04:05.000000" 的长度
	L_DATE6 = 26
)

for DB

View Source
var (
	Log4RawL7  = initLog4(PathRawL7)
	Log4ExL34  = initLog4(PathExL34)
	Log4ExL7   = initLog4(PathExL7)
	Log4ExSock = initLog4(PathExSock)
)
View Source
var (
	Debug = false
)

for root

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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