支持设置单节点最大线程数、单节点TCP最大连接数

This commit is contained in:
GoEdgeLab
2021-12-09 18:49:44 +08:00
parent b5acd6d971
commit 1b51766935
6 changed files with 640 additions and 576 deletions

View File

@@ -37,6 +37,8 @@ type NodeConfig struct {
RegionId int64 `yaml:"regionId" json:"regionId"`
MaxCacheDiskCapacity *shared.SizeCapacity `yaml:"maxCacheDiskCapacity" json:"maxCacheDiskCapacity"`
MaxCacheMemoryCapacity *shared.SizeCapacity `yaml:"maxCacheMemoryCapacity" json:"maxCacheMemoryCapacity"`
MaxThreads int `yaml:"maxThreads" json:"maxThreads"`
TCPMaxConnections int `yaml:"tcpMaxConnections" json:"tcpMaxConnections"`
// 全局配置
GlobalConfig *serverconfigs.GlobalConfig `yaml:"globalConfig" json:"globalConfig"` // 全局配置