Commit 31c30d34 authored by Node- 门 忠鑫's avatar Node- 门 忠鑫

修改开发环境配置文件

parent 44b6fd0e
...@@ -35,8 +35,6 @@ func main() { ...@@ -35,8 +35,6 @@ func main() {
//初始化redis连接池 //初始化redis连接池
data.RedisPoolInit() data.RedisPoolInit()
//go service.AgentClusterConsumer()
//go service.ClusterConsumer()
go service.AgentClusterConsumer(conf.HealthTopic(), service.HealthMessageHandler{}) go service.AgentClusterConsumer(conf.HealthTopic(), service.HealthMessageHandler{})
go service.AgentClusterConsumer(conf.BraveTopic(), service.BraveMessageHandler{}) go service.AgentClusterConsumer(conf.BraveTopic(), service.BraveMessageHandler{})
intPort, _ := strconv.Atoi(port) intPort, _ := strconv.Atoi(port)
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
"brokers": ["192.168.4.100:15091", "192.168.4.100:15092", "192.168.4.100:15093"] "brokers": ["192.168.4.100:15091", "192.168.4.100:15092", "192.168.4.100:15093"]
}, },
"influx_db": { "influx_db": {
"host": "http://localhost", "host": "192.168.4.100",
"port": "9001" "port": "8066"
} }
} }
package conf package conf
var (
//agentBrokers = []string{"192.168.4.100:15091", "192.168.4.100:15092", "192.168.4.100:15093"}
agentBrokers = []string{"172.30.12.19:9092", "172.30.12.20:9092", "172.30.12.21:9092"}
agentKafkaTopic = "quantGroup.tech.enoch.pro"
agentKafkaGroup = "quantGroup-enoch-agent"
)
type KafkaConf struct { type KafkaConf struct {
Broker []string Broker []string
...@@ -15,14 +9,14 @@ type KafkaConf struct { ...@@ -15,14 +9,14 @@ type KafkaConf struct {
func HealthTopic() KafkaConf { func HealthTopic() KafkaConf {
return KafkaConf{ return KafkaConf{
[]string{"172.30.12.19:9092", "172.30.12.20:9092", "172.30.12.21:9092"}, GlobalConfig.Kafka.Brokers,
"quantGroup.tech.enoch.pro", "quantGroup.tech.enoch.pro",
"quantGroup-enoch-agent"} "quantGroup-enoch-agent"}
} }
func BraveTopic() KafkaConf { func BraveTopic() KafkaConf {
return KafkaConf{ return KafkaConf{
[]string{"172.30.12.19:9092", "172.30.12.20:9092", "172.30.12.21:9092"}, GlobalConfig.Kafka.Brokers,
"quantGroup.tech.brave.pro", "quantGroup.tech.brave.pro",
"enoch-group"} "enoch-group"}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment