现在基础功能有了,回头看一下writeLog是否符合预期
This commit is contained in:
parent
9e7aa4fb94
commit
86d19153f6
@ -19,15 +19,15 @@ import (
|
||||
|
||||
func GetRemoteRedisConfigList() ([]*core.RedisConfig, error) {
|
||||
list := []*core.RedisConfig{}
|
||||
envListStr := os.Getenv("SARDINE_REMOTE_REDIS_LIST")
|
||||
envListStr := os.Getenv("SIAGA_UPSTREAM_REDIS_LIST")
|
||||
envList := strings.Split(envListStr, "|")
|
||||
for _, v := range envList {
|
||||
if len(v) == 0 {
|
||||
continue
|
||||
}
|
||||
urlstr := core.REMOTE_REDIS_PRE_NAME + v + "_URL"
|
||||
indexstr := core.REMOTE_REDIS_PRE_NAME + v + "_INDEX"
|
||||
password := os.Getenv(core.REMOTE_REDIS_PRE_NAME + v + "_PASSWORD")
|
||||
urlstr := "SIAGA_UPSTREAM_REDIS_" + v + "_URL"
|
||||
indexstr := "SIAGA_UPSTREAM_REDIS_" + v + "_INDEX"
|
||||
password := os.Getenv("SIAGA_UPSTREAM_REDIS_" + v + "_PASSWORD")
|
||||
// channelstr := core.REMOTE_REDIS_PRE_NAME + v + "_CHANNEL_PRENAME"
|
||||
// channelPreName := os.Getenv(channelstr)
|
||||
url := os.Getenv(urlstr)
|
||||
|
@ -30,7 +30,7 @@ func (mmx *MyMaX) Process(cr *core.Core) {
|
||||
}
|
||||
// TODO
|
||||
go func() {
|
||||
torqueSorted := os.Getenv("SARDINE_MAKESERIES") == "true"
|
||||
torqueSorted := os.Getenv("SIAGA_MAKESERIES") == "true"
|
||||
if !torqueSorted {
|
||||
return
|
||||
}
|
||||
|
20
siaga.env
Normal file
20
siaga.env
Normal file
@ -0,0 +1,20 @@
|
||||
GO_ENV=stage
|
||||
|
||||
SIAGA_ACCEPTTICKER=true
|
||||
SIAGA_ACCEPTCANDLE=true
|
||||
SIAGA_ACCEPTMAX=true
|
||||
SIAGA_ACCEPTSERIES=false
|
||||
|
||||
SIAGA_SAVECANDLE=true
|
||||
SIAGA_MAKESERIES=false
|
||||
SIAGA_MAKEMAX=true
|
||||
SIAGA_MAKESOFTCANDLE=true
|
||||
|
||||
SIAGA_TORQUESORTED=true
|
||||
SIAGA_TICKERTOCANDLE=true
|
||||
|
||||
TEXUS_FluentBitUrl=fluentd.k8s.xunlang.home
|
||||
|
||||
SIAGA_UPSTREAM_REDIS_LIST=SILVER
|
||||
SIAGA_UPSTREAM_REDIS_SILVER_URL=10.66.66.20:6379
|
||||
SIAGA_UPSTREAM_REDIS_SILVER_INDEX=4
|
Loading…
x
Reference in New Issue
Block a user