可以在集群中指定节点时区

This commit is contained in:
GoEdgeLab
2021-10-12 11:44:24 +08:00
parent 3321b548bc
commit bc6aa9f64e
4 changed files with 42 additions and 4 deletions

View File

@@ -770,6 +770,15 @@ func (this *NodeDAO) ComposeNodeConfig(tx *dbs.Tx, nodeId int64, cacheMap maps.M
config.HTTPCachePolicies = append(config.HTTPCachePolicies, cachePolicy)
}
}
// 时区
timeZone, err := SharedNodeClusterDAO.FindClusterTimezone(tx, clusterId, cacheMap)
if err != nil {
return nil, err
}
if len(timeZone) > 0 {
config.TimeZone = timeZone
}
}
// 缓存最大容量设置