mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-12 11:20:26 +08:00
定义访问日志队列
This commit is contained in:
10
pkg/serverconfigs/access_log_queue_config.go
Normal file
10
pkg/serverconfigs/access_log_queue_config.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@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
|
||||
}
|
||||
@@ -9,8 +9,9 @@ const (
|
||||
SettingCodeIPListVersion SettingCode = "ipListVersion" // IP名单的版本号
|
||||
SettingCodeAdminSecurityConfig SettingCode = "adminSecurityConfig" // 管理员安全设置
|
||||
SettingCodeDatabaseConfigSetting SettingCode = "databaseConfig" // 数据库相关配置
|
||||
SettingCodeNSAccessLogSetting SettingCode = "nsAccessLogSetting" // NS相关全局配置
|
||||
SettingCodeAccessLogQueue SettingCode = "accessLogQueue" // 访问日志队列
|
||||
|
||||
SettingCodeNSAccessLogSetting SettingCode = "nsAccessLogSetting" // NS相关全局配置
|
||||
SettingCodeNSNodeMonitor SettingCode = "nsNodeMonitor" // 监控NS节点状态
|
||||
|
||||
SettingCodeReportNodeGlobalSetting SettingCode = "reportNodeGlobalSetting" // 区域监控节点全局配置
|
||||
|
||||
Reference in New Issue
Block a user