Files
EdgeCommon/pkg/serverconfigs/access_log_queue_config.go

14 lines
671 B
Go
Raw Permalink Normal View History

2024-05-17 18:28:59 +08:00
// Copyright 2021 GoEdge CDN goedge.cdn@gmail.com. All rights reserved.
2021-12-14 12:42:47 +08:00
package serverconfigs
// AccessLogQueueConfig 访问日志队列配置
type AccessLogQueueConfig struct {
MaxLength int `yaml:"maxLength" json:"maxLength"` // 队列最大长度
CountPerSecond int `yaml:"countPerSecond" json:"countPerSecond"` // 每秒写入数量
Percent int `yaml:"percent" json:"percent"` // 比例如果为0-100默认为100
EnableAutoPartial bool `yaml:"enableAutoPartial" json:"enableAutoPartial"` // 是否启动自动分表
RowsPerTable int64 `yaml:"rowsPerTable" json:"rowsPerTable"` // 单表最大行数
2021-12-14 12:42:47 +08:00
}