Files
EdgeCommon/pkg/serverconfigs/access_log_queue_config.go
2024-05-17 18:28:59 +08:00

14 lines
671 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Copyright 2021 GoEdge CDN goedge.cdn@gmail.com. All rights reserved.
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"` // 单表最大行数
}